summaryrefslogtreecommitdiff
path: root/tests/apps
Commit message (Collapse)AuthorAgeFilesLines
* Rewrote some references to "master".Adam Johnson2022-03-081-5/+5
| | | | Following d9a266d657f66b8c4fa068408002a4e3709ee669.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-1/+4
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-078-128/+151
|
* Refs #31180 -- Removed default_app_config application configuration variable ↵Mariusz Felisiak2021-09-209-145/+2
| | | | per deprecation timeline.
* Fixed #32285 -- Raised ImproperlyConfigured when AppConfig.label is not a ↵Hasan Ramezani2020-12-221-0/+8
| | | | valid Python identifier.
* Fixed #31007 -- Allowed specifying type of auto-created primary keys.Tom Forbes2020-12-152-2/+31
| | | | | This also changes the default type of auto-created primary keys for new apps and projects to BigAutoField.
* Refs #31180 -- Fixed unreachable assertions in apps tests.Mariusz Felisiak2020-08-111-4/+14
|
* Fixed #31870 -- Fixed crash when populating app registry with empty or ↵Iuri de Silvio2020-08-104-0/+66
| | | | | without apps module. Regression in 3f2821af6bc48fa8e7970c1ce27bc54c3172545e.
* Fixed #31180 -- Configured applications automatically.Aymeric Augustin2020-07-2118-17/+146
|
* Fixed #27685 -- Added watchman support to the autoreloader.Tom Forbes2019-01-131-0/+3
| | | Removed support for pyinotify (refs #9722).
* Fixed #29768 -- Improved error message when an AppConfig has a typo in ↵Marten Kenbeek2018-09-261-4/+12
| | | | INSTALLED_APPS.
* Added test for Apps.get_models() when models_ready=False.Mads Jensen2018-01-301-6/+19
|
* Used assertRaisesMessage() to test Django's error messages.Mads Jensen2017-07-291-2/+4
|
* Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne2017-06-011-4/+4
|
* Replaced type-specific assertions with assertEqual().Tim Graham2017-03-171-8/+6
| | | Python docs say, "it's usually not necessary to invoke these methods directly."
* Tested AppConfig.__repr__().Anton Samarchyan2017-01-271-0/+4
|
* Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham2017-01-202-6/+4
| | | These functions do nothing on Python 3.
* Refs #23919 -- Removed str() conversion of type and method __name__.Simon Charette2017-01-191-8/+8
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-192-2/+2
|
* Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz2017-01-181-3/+0
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-183-6/+0
|
* Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za2016-11-101-3/+3
|
* Fixed #26616 -- Improved error message when AppConfig.name is invalid.inondle2016-06-021-1/+2
|
* Fixed E128 flake8 warnings in tests/.Tim Graham2016-04-081-2/+1
|
* Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as ↵Hasan2016-01-291-3/+3
| | | | appropriate.
* Added missing period to "etc.".pp2016-01-111-1/+1
|
* Fixed #25746 -- Isolated inlined test models registration.Simon Charette2016-01-061-2/+3
| | | | Thanks to Tim for the review.
* Fixed #25745 -- Promoted RuntimeWarnings to errors in the test suite.Simon Charette2015-11-141-8/+6
|
* Refs #22789 -- Removed contrib.webdesign per deprecation timeline.Tim Graham2015-09-231-2/+2
|
* Fixed #25246 -- Guarded against duplicate paths in AppConfig.Caio Ariede2015-09-021-0/+8
|
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-1/+0
|
* Refs #23621 -- Fixed warning message when reloading models.Marten Kenbeek2015-06-301-1/+1
|
* Removed support for Python 3.3.Tim Graham2015-06-181-4/+1
|
* Fixed #24776 -- Improved apps.get_app_config() error message on ↵Peter Inglesby2015-05-221-0/+4
| | | | fully-qualified package names.
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-4/+4
|
* Fixed #24215 -- Refactored lazy model operationsAlex Hill2015-03-251-0/+38
| | | | | | | This adds a new method, Apps.lazy_model_operation(), and a helper function, lazy_related_operation(), which together supersede add_lazy_relation() and make lazy model operations the responsibility of the App registry. This system no longer uses the class_prepared signal.
* Refs #24324 -- Fixed Python 2 test failures when path to Django source ↵Tim Graham2015-02-171-1/+1
| | | | contains non-ASCII characters.
* Added check_apps_ready() to Apps.get_containing_app_config()Tim Graham2015-02-081-1/+13
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-062-6/+4
|
* Refactored tests that rely on an ImportError for Python 3.5 compatibilityTim Graham2015-02-032-2/+1
| | | | | | | | A change in Python test discovery [1] causes the old packages that raised an error to be discovered; now we use a common directory that's ignored during discovery. Refs #23763. [1] http://bugs.python.org/issue7559
* Fixed flake8 warning.Tim Graham2014-10-221-0/+1
|
* Improved warning message when reloading models. Refs #23621.Loic Bistuer2014-10-231-1/+4
| | | | Thanks dfunckt and Tim Graham.
* Fixed #23621 -- Warn for duplicate models when a module is reloaded.Loic Bistuer2014-10-231-0/+36
| | | | | | | | | Previously a RuntimeError was raised every time two models clashed in the app registry. This prevented reloading a module in a REPL; while it's not recommended to do so, we decided not to forbid this use-case by turning the error into a warning. Thanks @dfunckt and Sergey Pashinin for the initial patches.
* Fixed #22920 -- Avoid masking some exceptions.Aymeric Augustin2014-09-082-0/+9
| | | | | If loading an application trigger an ImportError, the details of that error were lost in some cases. Thanks Ben Davis for the report.
* Removed unnecessary absolute_imports.Tim Graham2014-08-251-1/+1
|
* Fixed #21874 -- Require Django applications to have a filesystem path.Carl Meyer2014-01-271-1/+66
| | | | | | | | | | | | | | Wherever possible this filesystem path is derived automatically from the app module's ``__path__`` and ``__file__`` attributes (this avoids any backwards-compatibility problems). AppConfig allows specifying an app's filesystem location explicitly, which overrides all autodetection based on ``__path__`` and ``__file__``. This permits Django to support any type of module as an app (namespace packages, fake modules, modules loaded by other hypothetical non-filesystem module loaders), as long as the app is configured with an explicit filesystem path. Thanks Aymeric for review and discussion.
* Fixed some missing/extraneous new line warnings.Simon Charette2014-01-262-1/+1
|
* Fixed #21702 -- get_model('app_label.ModelName').Aymeric Augustin2014-01-261-2/+27
| | | | Also added tests for get_model.
* Moved sys.path-extending decorator to django.test.utils and used throughout ↵Carl Meyer2014-01-251-14/+4
| | | | | | test suite. Thanks Aymeric for the suggestion.
* Fixed #17304 -- Allow single-path and configured-path namespace packages as ↵Carl Meyer2014-01-253-0/+75
| | | | | | | | | | apps. Also document the conditions under which a namespace package may or may not be a Django app, and raise a clearer error message in those cases where it may not be. Thanks Aymeric for review and consultation.