summaryrefslogtreecommitdiff
path: root/tests/swappable_models
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Applied Black's 2023 stable style.David Smith2023-02-011-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 #33476 -- Reformatted code with Black.django-bot2022-02-072-19/+20
|
* Disabled management commands output with verbosity 0 in various tests.François Freitag2020-05-131-4/+1
|
* Refs #27790 -- Reverted "Removed available_apps on TestCase subclasses."Tim Graham2017-01-281-0/+7
| | | | | This reverts commit 91023d79ec70df9289271e63a67675ee51e7dea8 as it increases memory usage for the test suite.
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-2/+3
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Removed available_apps on TestCase subclasses.Simon Charette2017-01-131-6/+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.za2016-11-101-2/+2
|
* Replaced use of TestCase.fail() with assertRaises().Tim Graham2016-06-281-5/+1
| | | Also removed try/except/fail antipattern that hides exceptions.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-3/+2
|
* Removed support for initial_data fixtures per deprecation timeline.Tim Graham2015-01-171-1/+1
|
* Added a missing import and removed an unneeded importAlex Gaynor2013-12-241-1/+0
|
* Renamed AppCache to Apps.Aymeric Augustin2013-12-241-1/+1
| | | | | | Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
* Replaced ad-hoc caching of get_models with lru_cache.Aymeric Augustin2013-12-241-10/+0
| | | | | Invalidate properly the cache whenever all_models or app_configs change. This fixes some isolation issues in the test suite.
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-2/+1
|
* Moved apps back in the toplevel django namespace.Aymeric Augustin2013-12-221-1/+1
| | | | Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
* Moved the new app cache inside core.Aymeric Augustin2013-12-171-1/+1
|
* Removed module-level functions for the app cache.Aymeric Augustin2013-12-171-3/+3
| | | | | | | | | | | | | | | Since the original ones in django.db.models.loading were kept only for backwards compatibility, there's no need to recreate them. However, many internals of Django still relied on them. They were also imported in django.db.models. They never appear in the documentation, except a quick mention of get_models and get_app in the 1.2 release notes to document an edge case in GIS. I don't think that makes them a public API. This commit doesn't change the overall amount of global state but clarifies that it's tied to the app_cache object instead of hiding it behind half a dozen functions.
* Moved django.db.models.loading to django.apps.cache.Aymeric Augustin2013-12-171-1/+1
| | | | This commit doesn't contain any code changes; it's purely a refactoring.
* Fixed assorted flake8 errors.Tim Graham2013-10-111-2/+2
|
* Updated syncdb -> migrate in tests.Tim Graham2013-09-031-2/+2
|
* Removed most of absolute_import importsClaude Paroz2013-07-291-1/+1
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Fixed #20603 -- Made the test suite faster.Aymeric Augustin2013-06-141-0/+7
| | | | | | By avoiding to run syncdb with the full set of test models. Thanks Anssi for the idea.
* Renamed some tests and removed references to modeltests/regressiontests.Florian Apolloner2013-02-261-1/+1
|
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+73