Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #33985 -- Used app_config.verbose_name in ContentType.__str__(). | Hrushikesh Vaidya | 2023-03-09 | 1 | -1/+1 |
| | |||||
* | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | 2023-02-01 | 1 | -1/+0 |
| | | | | | | | | Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 | ||||
* | Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵ | Gregor Gärtner | 2022-10-08 | 1 | -2/+2 |
| | | | | | | assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com> | ||||
* | Removed redundant QuerySet.all() calls in docs and tests. | Nick Pope | 2022-02-22 | 1 | -5/+5 |
| | | | | Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager. | ||||
* | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | 2022-02-07 | 1 | -13/+40 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 3 | -681/+1079 |
| | |||||
* | Fixed isolation of RouterTestCase.test_m2m_cross_database_protection(). | Mariusz Felisiak | 2021-07-05 | 1 | -2/+2 |
| | | | | | | Hardcoded pks are necessary for this test case, however we need to set them for all new rows because the sequence will not increment automatically. It works when the sequence is incremented by other test cases. | ||||
* | Removed unused __str__() methods in tests models. | Mariusz Felisiak | 2020-04-30 | 1 | -3/+0 |
| | | | Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1. | ||||
* | Enforced uniqueness of natural keys used in tests. | Mariusz Felisiak | 2020-04-07 | 1 | -1/+1 |
| | |||||
* | Refs #31117 -- Made various tests properly handle unexpected databases aliases. | Matthijs Kooijman | 2020-01-20 | 1 | -2/+2 |
| | | | | | | | | - Used selected "databases" instead of django.db.connections. - Made routers in tests.migrations skip migrations on unexpected databases. - Added DiscoverRunnerGetDatabasesTests.assertSkippedDatabases() hook which properly asserts messages about skipped databases. | ||||
* | Fixed #16027 -- Added app_label to ContentType.__str__(). | Gregory N. Schmit | 2019-02-07 | 1 | -2/+2 |
| | |||||
* | Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵ | Simon Charette | 2019-01-10 | 1 | -11/+11 |
| | | | | favor of databases. | ||||
* | Followed style guide for model attribute ordering. | Matt Wiens | 2018-12-27 | 1 | -12/+14 |
| | |||||
* | Switched TestCase to SimpleTestCase where possible in Django's tests. | Tim Graham | 2018-11-27 | 1 | -1/+1 |
| | |||||
* | Fixed #27629 -- Added router.allow_relation() calls for assignments between ↵ | Stefan R. Filipek | 2018-05-10 | 1 | -0/+25 |
| | | | | unsaved model instances. | ||||
* | Fixed hanging indentation in various code. | Mariusz Felisiak | 2018-03-16 | 1 | -17/+23 |
| | |||||
* | Fixed #28982 -- Simplified code with and/or. | Дилян Палаузов | 2018-01-03 | 1 | -3/+1 |
| | |||||
* | Fixed #28974 -- Made refresh_from_db() hint routers about its instance. | Simon Charette | 2018-01-02 | 1 | -0/+9 |
| | |||||
* | Removed a primary key value dependency in a multiple_database test. | Tim Graham | 2017-07-31 | 1 | -2/+2 |
| | | | | Follow up to a51c4de1945be2225f20fad794cfb52d8f1f9236. | ||||
* | Used assertRaisesMessage() to test Django's error messages. | Mads Jensen | 2017-07-29 | 1 | -13/+45 |
| | |||||
* | Replaced type-specific assertions with assertEqual(). | Tim Graham | 2017-03-17 | 1 | -3/+3 |
| | | | Python docs say, "it's usually not necessary to invoke these methods directly." | ||||
* | Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments. | Vytis Banaitis | 2017-02-01 | 1 | -4/+2 |
| | |||||
* | Refs #27790 -- Reverted "Removed available_apps on TestCase subclasses." | Tim Graham | 2017-01-28 | 1 | -0/+6 |
| | | | | | This reverts commit 91023d79ec70df9289271e63a67675ee51e7dea8 as it increases memory usage for the test suite. | ||||
* | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | 2017-01-25 | 1 | -2/+2 |
| | |||||
* | Refs #23919 -- Stopped inheriting from object to define new style classes. | Simon Charette | 2017-01-19 | 2 | -10/+10 |
| | |||||
* | Refs #23919 -- Removed most of remaining six usage | Claude Paroz | 2017-01-18 | 1 | -1/+1 |
| | | | | Thanks Tim Graham for the review. | ||||
* | Refs #23919 -- Removed python_2_unicode_compatible decorator usage | Claude Paroz | 2017-01-18 | 1 | -5/+0 |
| | |||||
* | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | 2017-01-18 | 2 | -4/+0 |
| | |||||
* | Removed available_apps on TestCase subclasses. | Simon Charette | 2017-01-13 | 1 | -5/+0 |
| | | | | | | | TestCase subclasses are wrapped in a transaction that prevents any data from being persisted between test runs andi thus don't require limiting the tables to be flushed to a subset of available apps like TransactionTestCase subclasses do. | ||||
* | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | 2016-11-10 | 1 | -23/+22 |
| | |||||
* | Removed unused lines in multiple_database test. | Tim Graham | 2016-09-07 | 1 | -7/+1 |
| | |||||
* | Replaced use of TestCase.fail() with assertRaises(). | Tim Graham | 2016-06-28 | 1 | -171/+101 |
| | | | Also removed try/except/fail antipattern that hides exceptions. | ||||
* | Fixed #26784 -- Made ForeignKey.validate() pass `model` to router if ↵ | Ben Demboski | 2016-06-27 | 1 | -0/+11 |
| | | | | model_instance=None. | ||||
* | Fixed #26747 -- Used more specific assertions in the Django test suite. | Jon Dufresne | 2016-06-16 | 1 | -6/+6 |
| | |||||
* | Fixed E128 flake8 warnings in tests/. | Tim Graham | 2016-04-08 | 1 | -118/+62 |
| | |||||
* | Refs #26022 -- Used context manager version of assertRaises in tests. | Hasan | 2016-01-29 | 1 | -55/+38 |
| | |||||
* | Fixed #25550 -- Deprecated direct assignment to the reverse side of a ↵ | Tim Graham | 2015-10-27 | 1 | -16/+17 |
| | | | | related set. | ||||
* | Refs #24351 -- Removed support for the old allow_migrate() signature per ↵ | Tim Graham | 2015-09-23 | 1 | -32/+0 |
| | | | | deprecation timeline. | ||||
* | Fixed #23395 -- Limited line lengths to 119 characters. | Dražen Odobašić | 2015-09-12 | 1 | -109/+251 |
| | |||||
* | Fixed #18556 -- Allowed RelatedManager.add() to execute 1 query where possible. | Tim Graham | 2015-07-28 | 1 | -2/+13 |
| | | | | Thanks Loic Bistuer for review. | ||||
* | Fixed #21127 -- Started deprecation toward requiring on_delete for ↵ | Flavio Curella | 2015-07-27 | 1 | -4/+4 |
| | | | | ForeignKey/OneToOneField | ||||
* | Renamed RemovedInDjangoXYWarnings for new roadmap. | Tim Graham | 2015-06-24 | 1 | -2/+2 |
| | | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more. | ||||
* | Refs #24652 -- Used SimpleTestCase where appropriate. | Simon Charette | 2015-05-20 | 1 | -2/+2 |
| | |||||
* | Fixed #24714 -- Used more specific assertions than assertEqual in tests. | Alasdair Nicol | 2015-04-28 | 1 | -1/+1 |
| | |||||
* | Fixed allow_migrate signature in one of the tests. | Loic Bistuer | 2015-02-21 | 1 | -1/+1 |
| | | | | Refs #24351. | ||||
* | Fixed #24351, #24346 -- Changed the signature of allow_migrate(). | Loic Bistuer | 2015-02-20 | 2 | -31/+65 |
| | | | | | | | | | | | | | | The new signature enables better support for routing RunPython and RunSQL operations, especially w.r.t. reusable and third-party apps. This commit also takes advantage of the deprecation cycle for the old signature to remove the backward incompatibility introduced in #22583; RunPython and RunSQL won't call allow_migrate() when when the router has the old signature. Thanks Aymeric Augustin and Tim Graham for helping shape up the patch. Refs 22583. | ||||
* | Sorted imports with isort; refs #23860. | Tim Graham | 2015-02-06 | 2 | -3/+3 |
| | |||||
* | Removed support for initial_data fixtures per deprecation timeline. | Tim Graham | 2015-01-17 | 1 | -4/+2 |
| | |||||
* | Removed an incorrect docstring in tests/multiple_database/tests.py. | wrwrwr | 2014-12-01 | 1 | -1/+0 |
| | |||||
* | Removed a no-op statement in tests/multiple_database/tests.py. | wrwrwr | 2014-12-01 | 1 | -2/+0 |
| |