summaryrefslogtreecommitdiff
path: root/tests/delete_regress
AgeCommit message (Collapse)Author
2021-04-27[3.2.x] Refs #32682 -- Fixed QuerySet.delete() crash on querysets with ↵Mariusz Felisiak
self-referential subqueries on MySQL. Backport of 4074f38e1dcc93b859bbbfd6abd8441c3bca36b3 from main
2021-02-11[3.2.x] Fixed #32433 -- Added error message on QuerySet.delete() following ↵Egidijus Macijauskas
distinct(). Backport of 6307c3f1a123f5975c73b231e8ac4f115fd72c0d from master
2021-02-11[3.2.x] Refs #19102 -- Removed flaky test ↵Egidijus Macijauskas
Ticket19102Tests.test_ticket_19102_distinct_on. The subquery pushdown only happens because another table is involved in filter. It's not the distinct usage that causes the pushdown. The distinct('description').order_by('pk') expression is not valid because SELECT DISTINCT ON must match initial ORDER BY expressions which is not the case here. Backport of 4e8ecf0cb6ea36c45edb9cb86f0d63224e08097e from master
2018-11-27Switched setUp() to setUpTestData() where possible in Django's tests.Simon Charette
2018-03-16Fixed hanging indentation in various code.Mariusz Felisiak
2018-01-13Fixed #29016 -- Fixed incorrect foreign key nullification on related ↵Étienne Loks
instance deletion.
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2015-09-09Changed database connection duplication technique.Aymeric Augustin
This new technique is more straightforward and compatible with test parallelization, where the effective database connection settings no longer match settings.DATABASES.
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-03-22Fixed #22308 -- Regression from 0f956085.Aymeric Augustin
Rewrote the test for #9479 according to the original ticket.
2014-03-21Removed legacy transaction management per the deprecation timeline.Aymeric Augustin
2014-01-26Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette
It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-10-26Fix all violators of E231Alex Gaynor
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol
2013-09-09Removed unneeded imports in tests's __init__.py and unified them.Florian Apolloner
2013-09-08Removed some more unused local varsAlex Gaynor
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-06-10Defined available_apps in relevant tests.Aymeric Augustin
Fixed #20483.
2013-03-11Made transaction.managed a no-op and deprecated it.Aymeric Augustin
enter_transaction_management() was nearly always followed by managed(). In three places it wasn't, but they will all be refactored eventually. The "forced" keyword argument avoids introducing behavior changes until then. This is mostly backwards-compatible, except, of course, for managed itself. There's a minor difference in _enter_transaction_management: the top self.transaction_state now contains the new 'managed' state rather than the previous one. Django doesn't access self.transaction_state in _enter_transaction_management.
2013-02-27Fixed #19861 -- Transaction ._dirty flag improvementAnssi Kääriäinen
There were a couple of errors in ._dirty flag handling: * It started as None, but was never reset to None. * The _dirty flag was sometimes used to indicate if the connection was inside transaction management, but this was not done consistently. This also meant the flag had three separate values. * The None value had a special meaning, causing for example inability to commit() on new connection unless enter/leave tx management was done. * The _dirty was tracking "connection in transaction" state, but only in managed transactions. * Some tests never reset the transaction state of the used connection. * And some additional less important changes. This commit has some potential for regressions, but as the above list shows, the current situation isn't perfect either.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner