summaryrefslogtreecommitdiff
path: root/tests/apps
AgeCommit message (Collapse)Author
2019-01-13Fixed #27685 -- Added watchman support to the autoreloader.Tom Forbes
Removed support for pyinotify (refs #9722).
2018-09-26Fixed #29768 -- Improved error message when an AppConfig has a typo in ↵Marten Kenbeek
INSTALLED_APPS.
2018-01-30Added test for Apps.get_models() when models_ready=False.Mads Jensen
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-03-17Replaced type-specific assertions with assertEqual().Tim Graham
Python docs say, "it's usually not necessary to invoke these methods directly."
2017-01-27Tested AppConfig.__repr__().Anton Samarchyan
2017-01-20Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham
These functions do nothing on Python 3.
2017-01-19Refs #23919 -- Removed str() conversion of type and method __name__.Simon Charette
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
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
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-06-02Fixed #26616 -- Improved error message when AppConfig.name is invalid.inondle
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-01-29Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as ↵Hasan
appropriate.
2016-01-11Added missing period to "etc.".pp
2016-01-06Fixed #25746 -- Isolated inlined test models registration.Simon Charette
Thanks to Tim for the review.
2015-11-14Fixed #25745 -- Promoted RuntimeWarnings to errors in the test suite.Simon Charette
2015-09-23Refs #22789 -- Removed contrib.webdesign per deprecation timeline.Tim Graham
2015-09-02Fixed #25246 -- Guarded against duplicate paths in AppConfig.Caio Ariede
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
2015-06-30Refs #23621 -- Fixed warning message when reloading models.Marten Kenbeek
2015-06-18Removed support for Python 3.3.Tim Graham
2015-05-22Fixed #24776 -- Improved apps.get_app_config() error message on ↵Peter Inglesby
fully-qualified package names.
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-03-25Fixed #24215 -- Refactored lazy model operationsAlex Hill
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.
2015-02-17Refs #24324 -- Fixed Python 2 test failures when path to Django source ↵Tim Graham
contains non-ASCII characters.
2015-02-08Added check_apps_ready() to Apps.get_containing_app_config()Tim Graham
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-03Refactored tests that rely on an ImportError for Python 3.5 compatibilityTim Graham
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
2014-10-22Fixed flake8 warning.Tim Graham
2014-10-23Improved warning message when reloading models. Refs #23621.Loic Bistuer
Thanks dfunckt and Tim Graham.
2014-10-23Fixed #23621 -- Warn for duplicate models when a module is reloaded.Loic Bistuer
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.
2014-09-08Fixed #22920 -- Avoid masking some exceptions.Aymeric Augustin
If loading an application trigger an ImportError, the details of that error were lost in some cases. Thanks Ben Davis for the report.
2014-08-25Removed unnecessary absolute_imports.Tim Graham
2014-01-27Fixed #21874 -- Require Django applications to have a filesystem path.Carl Meyer
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.
2014-01-26Fixed some missing/extraneous new line warnings.Simon Charette
2014-01-26Fixed #21702 -- get_model('app_label.ModelName').Aymeric Augustin
Also added tests for get_model.
2014-01-25Moved sys.path-extending decorator to django.test.utils and used throughout ↵Carl Meyer
test suite. Thanks Aymeric for the suggestion.
2014-01-25Fixed #17304 -- Allow single-path and configured-path namespace packages as ↵Carl Meyer
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.
2014-01-25Fixed #21829 -- Added default AppConfigs.Aymeric Augustin
Thanks Russell for the report, Marc for the initial patch, Carl for the final review, and everyone who contributed to the design discussion.
2014-01-24Fixed #21871 -- Fixed Apps.is_installed() for apps with custom label.Carl Meyer
Thanks Aymeric for design discussion.
2014-01-06Fixed #21718 -- Renamed has_app to is_installed.Aymeric Augustin
2013-12-31Enforced unicity of app labels.Aymeric Augustin
Fixed #21679.
2013-12-31Made it possible to change an application's label in its configuration.Aymeric Augustin
Fixed #21683.
2013-12-30Removed the only_with_models_module argument of get_model[s].Aymeric Augustin
Now that the refactorings are complete, it isn't particularly useful any more, nor very well named. Let's keep the API as simple as possible. Fixed #21689.
2013-12-30Populated Apps instances immediately by default.Aymeric Augustin
2013-12-29Deprecated the app argument of apps.get_models.Aymeric Augustin
Use app_config.get_models() instead.
2013-12-28Changed get_model to raise an exception on errors.Aymeric Augustin
Returning None on errors required unpythonic error checking and was inconsistent with get_app_config. get_model was a private API until the previous commit, but given that it was certainly used in third party software, the change is explained in the release notes. Applied the same change to get_registered_model, which is a new private API introduced during the recent refactoring.