| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2019-01-21 | [2.2.x] Fixed #30121 -- Fixed assertURLEqual() crash with reverse_lazy() URLs. | Jon Dufresne | |
| Regression in 24959e48d949a20be969f649ece3576dbc7ce422. Backport of d15c61cabbe1c15068ffeb58c64035057f0c7d5c from master. | |||
| 2019-01-14 | Refs #28478 -- Prevented database feature based skipping on tests ↵ | Simon Charette | |
| disallowing queries. Database features may require a connection to be established to determine whether or not they are enabled. | |||
| 2019-01-14 | Refs #28478 -- Prevented connection attempts against disallowed databases in ↵ | Simon Charette | |
| tests. Mocking connect as well as cursor methods makes sure an appropriate error message is surfaced when running a subset of test attempting to access a a disallowed database. | |||
| 2019-01-10 | Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵ | Simon Charette | |
| favor of databases. | |||
| 2018-12-31 | Updated test URL patterns to use path() and re_path(). | Tim Graham | |
| 2018-12-05 | Reverted "Fixed #25251 -- Made data migrations available in ↵ | Tim Graham | |
| TransactionTestCase when using --keepdb." This reverts commits b3b1d3d45fc066367f4fcacf0b06f72fcd00a9c6 and 9fa0d3786febf36c87ef059a39115aa1ce3326e8 due to reverse build failures for which a solution isn't forthcoming. | |||
| 2018-11-27 | Switched setUp() to setUpTestData() where possible in Django's tests. | Simon Charette | |
| 2018-11-06 | Fixed #25251 -- Made data migrations available in TransactionTestCase when ↵ | romgar | |
| using --keepdb. Data loaded in migrations were restored at the beginning of each TransactionTestCase and all the tables are truncated at the end of these test cases. If there was a TransactionTestCase at the end of the test suite, the migrated data weren't restored in the database (especially unexpected when using --keepdb). Now data is restored at the end of each TransactionTestCase. | |||
| 2018-10-27 | Fixed #28606 -- Deprecated CachedStaticFilesStorage. | Tim Graham | |
| 2018-08-17 | Fixed #29024 -- Made TestContextDecorator call disable() if setUp() raises ↵ | Kamil | |
| an exception. | |||
| 2018-06-20 | Fixed #27398 -- Added an assertion to compare URLs, ignoring the order of ↵ | Jan Pieter Waagmeester | |
| their query strings. | |||
| 2018-05-09 | Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage(). | Morgan Aubert | |
| 2018-05-02 | Fixed #29375 -- Removed empty action attribute on HTML forms. | CHI Cheng | |
| 2017-09-25 | Fixed #27857 -- Dropped support for Python 3.4. | Tim Graham | |
| 2017-07-29 | Used assertRaisesMessage() to test Django's error messages. | Mads Jensen | |
| 2017-06-16 | Fixed #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-05-20 | Fixed #28180 -- Numbered queries in assertNumQueries failure output | Claude Paroz | |
| Thanks Tim Graham for the test part. | |||
| 2017-05-18 | Fixed #28203 -- Ignored connection configuration queries in assertNumQueries(). | François Freitag | |
| 2017-03-17 | Replaced type-specific assertions with assertEqual(). | Tim Graham | |
| Python docs say, "it's usually not necessary to invoke these methods directly." | |||
| 2017-02-24 | Fixed #27873 -- Fixed crash in setup_test_environment() if ALLOWED_HOSTS is ↵ | Chris Lamb | |
| a tuple. Regression in 17e661641ddaf8266e7430d83cfb2039abc55df7 | |||
| 2017-01-25 | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | |
| 2017-01-20 | Refs #23919 -- Removed django.test.mock Python 2 compatibility shim. | Tim Graham | |
| 2017-01-20 | Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage. | Tim Graham | |
| These functions do nothing on Python 3. | |||
| 2017-01-20 | Refs #23919 -- Simplified assertRaisesRegex()'s that accounted for Python 2. | Tim Graham | |
| 2017-01-18 | Refs #23919 -- Removed most of remaining six usage | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-18 | Refs #23919 -- Removed six.<various>_types usage | Claude Paroz | |
| Thanks Tim Graham and Simon Charette for the reviews. | |||
| 2017-01-18 | Refs #23919 -- Removed python_2_unicode_compatible decorator usage | Claude Paroz | |
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2017-01-17 | Refs #25190 -- Removed callable_obj parameter to assertRaisesMessages(). | Tim Graham | |
| Per deprecation timeline. | |||
| 2017-01-11 | Refs #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-07 | Fixed #27579 -- Added aliases for Python 3's assertion names in SimpleTestCase. | Tim Graham | |
| 2016-11-10 | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | |
| 2016-09-13 | Fixed #27214 -- Made skip db features decorators respect wrapping order and ↵ | Simon Charette | |
| inheritance. | |||
| 2016-08-31 | Fixed #24112 -- Fixed assertInHTML()'s counting if needle has no root element. | Adam Zapletal | |
| 2016-08-08 | Fixed #27032 -- Prevented setup_test_environment() from being called twice. | Chris Jerdonek | |
| 2016-07-21 | Fixed #26922 -- Fixed SimpleTestCase.assertHTMLEqual() crash on Python 3.5+. | Dmitry Dygalo | |
| 2016-04-08 | Fixed E128 flake8 warnings in tests/. | Tim Graham | |
| 2016-02-13 | Fixed #11665 -- Made TestCase check deferrable constraints after each test. | Jon Dufresne | |
| 2016-01-29 | Refs #26022 -- Used context manager version of assertRaisesMessage in tests. | Hasan | |
| 2016-01-29 | Refs #26022 -- Used context manager version of assertRaises in tests. | Hasan | |
| 2016-01-06 | Refs #25746 -- Added a test utility to isolate inlined model registration. | Simon Charette | |
| Thanks to Tim for the review. | |||
| 2015-12-31 | Fixed #26013 -- Moved django.core.urlresolvers to django.urls. | Marten Kenbeek | |
| Thanks to Tim Graham for the review. | |||
| 2015-11-09 | Fixed #25170 -- Made assertXMLEqual()/assertXMLNotEqual() ignore leading and ↵ | Mattia Larentis | |
| trailing whitespace. Thanks Jacek Bzdak for indepdently contributing a similar fix. | |||
| 2015-09-12 | Fixed #23395 -- Limited line lengths to 119 characters. | Dražen Odobašić | |
| 2015-08-24 | Fixed #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-04 | Fixed #25191 -- Added string diff to SimpleTestCase.assertXMLEqual() message. | Caio Ariede | |
| 2015-08-01 | Refs #25176 -- Fixed typo in tests/test_utils/tests.py | Tim Graham | |
| 2015-08-01 | Fixed #25176 -- Prevented TestCase.setUpTestData() exception from leaking ↵ | Adam Chainz | |
| transaction. | |||
| 2015-07-31 | Fixed #25188 -- Improved message raised by SimpleTestCase.assertRaisesMessage(). | Tim Graham | |
| Thanks Chris Jerdonek for the suggestion and help with the patch. | |||
| 2015-07-30 | Fixed #25190 -- Deprecated callable_obj parameter to assertRaisesMessage(). | Tim Graham | |
| Thanks Aymeric Augustin for review. | |||
