summaryrefslogtreecommitdiff
path: root/django/test/testcases.py
AgeCommit message (Collapse)Author
2017-09-09Fixed some comments referring to a nonexistent TestClient class.Luoxzhg
2017-06-18Refs #27539 -- Fixed typo in TransactionTestCase._pre_setup() comment.François Freitag
2017-06-16Fixed #27539 -- Made TransactionTestCase._pre_setup() clear the queries_log ↵reficul31
so it's less likely to overflow. TransactionTestCase.assertNumQueries() fails in an overflow situation.
2017-06-16Refs #27787 -- Corrected or removed invalid call_command() options.Chandrakant Kumar
2017-05-30Fixed #28212 -- Allowed customizing the port that LiveServerTestCase uses.Robert Rollins
Forwardport of 877d7b71ae952b3bc946e5187d6c23039a71614d from stable/1.11.x
2017-05-20Fixed #28180 -- Numbered queries in assertNumQueries failure outputClaude Paroz
Thanks Tim Graham for the test part.
2017-03-04Refs #27656 -- Updated remaining docstring verbs according to PEP 257.Anton Samarchyan
2017-02-13Added TransactionTestCase.multi_db instead of using getattr().Tim Graham
2017-02-09Fixed #20238 -- Added threading support to LiveServerTestCase.Nadège Michel
2017-02-01Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.Vytis Banaitis
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #25190 -- Removed callable_obj parameter to assertRaisesMessages().Tim Graham
Per deprecation timeline.
2017-01-17Refs #23960 -- Removed the host parameter for SimpleTestCase.assertRedirects().Tim Graham
Per deprecation timeline.
2017-01-11Refs #16614 -- Made QuerySet.iterator() use server-side cursors on PostgreSQL.François Freitag
Thanks to Josh Smeaton for the idea of implementing server-side cursors in PostgreSQL from the iterator method, and Anssi Kääriäinen and Kevin Turner for their previous work. Also Simon Charette and Tim Graham for review.
2016-12-07Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase.Tim Graham
2016-09-13Fixed #27214 -- Made skip db features decorators respect wrapping order and ↵Simon Charette
inheritance.
2016-08-19Fixed #22414 -- Ensured that LiveServerTestCase closes connections.Chris Jerdonek
2016-08-17Fixed #27077 -- Made SQLite's in-memory database checks DRYer.Chris Jerdonek
2016-08-01Fixed #26976 -- Added LiveServerTestCase.server_thread_class to ease ↵Chris Jerdonek
subclassing.
2016-07-21Fixed #26922 -- Fixed SimpleTestCase.assertHTMLEqual() crash on Python 3.5+.Dmitry Dygalo
2016-06-23Fixed #26791 -- Replaced LiveServerTestCase port ranges with binding to port 0.Tim Graham
2016-06-20Refs #26666 -- Added ALLOWED_HOSTS validation when running tests.Tobias McNulty
Also used ALLOWED_HOSTS to check for external hosts in assertRedirects().
2016-06-02Refs #26666 -- Fixed test failures caused by assertRedirects changes (#6701)Tobias McNulty
2016-06-02Fixed #26666 -- Added more useful error message to assertRedirectsTobias McNulty
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2016-04-04Fixed W503 flake8 warnings.Tim Graham
2016-04-02Fixed #26428 -- Added support for relative path redirects in assertRedirects().Tim Graham
Thanks Trac alias master for the report and review.
2016-02-13Fixed #11665 -- Made TestCase check deferrable constraints after each test.Jon Dufresne
2016-02-08Removed obsolete comment.knbk
2015-12-31Fixed #26011 -- Prevented random LiveServerTestCase test failures on Windows.Marten Kenbeek
Prevented LiveServerTestCase from stealing ports used by concurrent processes on Windows.
2015-11-03Fixed #25668 -- Misc spelling errorsVille Skyttä
2015-10-26Fixed #25611 -- Standardized descriptor signatures.Tim Graham
2015-09-23Refs #21977 -- Removed SimpleTestCase.urls per deprecation timeline.Tim Graham
2015-09-09Introduced a mixin for serializing tests.Aymeric Augustin
2015-09-09Allowed a port range for the liveserver by default.Aymeric Augustin
This is required for running tests in parallel.
2015-09-07Refs #25328 -- Refactored LiveServerTestCase to make it extensible.Jakub Gocławski
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
2015-08-24Fixed #23727 -- Inhibited the post_migrate signal when using ↵Tommy Beadle
serialized_rollback. When using a TransactionTestCase with serialized_rollback=True, after creating the database and running its migrations (along with emitting the post_migrate signal), the contents of the database are serialized to _test_serialized_contents. After the first test case, _fixture_teardown() would flush the tables but then the post_migrate signal would be emitted and new rows (with new PKs) would be created in the django_content_type table. Then in any subsequent test cases in a suite, _fixture_setup() attempts to deserialize the content of _test_serialized_contents, but these rows are identical to the rows already in the database except for their PKs. This causes an IntegrityError due to the unique constraint in the django_content_type table. This change made it so that in the above scenario the post_migrate signal is not emitted after flushing the tables, since it will be repopulated during fixture_setup().
2015-08-04Fixed #25191 -- Added string diff to SimpleTestCase.assertXMLEqual() message.Caio Ariede
2015-08-01Fixed #25176 -- Prevented TestCase.setUpTestData() exception from leaking ↵Adam Chainz
transaction.
2015-07-31Fixed #25188 -- Improved message raised by SimpleTestCase.assertRaisesMessage().Tim Graham
Thanks Chris Jerdonek for the suggestion and help with the patch.
2015-07-30Fixed #25190 -- Deprecated callable_obj parameter to assertRaisesMessage().Tim Graham
Thanks Aymeric Augustin for review.
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-06-12Refs #24965 -- Added changes from accidentally reverted file for last commit.Moritz Sichert
2015-05-20Fixed #24652 -- Disallowed query execution in SimpleTestCase subclasses.Simon Charette
Thanks to Tim and Anssi for the review.