Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/apps
Commit message (Collapse)AuthorAgeFilesLines
* Refs #22789 -- Removed contrib.webdesign per deprecation ↵Tim Graham2015-09-241-2/+2
| | | | timeline.
* Fixed #25246 -- Guarded against duplicate paths in ↵Caio Ariede2015-09-021-0/+8
| | | | AppConfig.
* 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 ↵Peter Inglesby2015-05-221-0/+4
| | | | message on 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 ↵Tim Graham2015-02-181-1/+1
| | | | Django source 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 ↵Tim Graham2015-02-042-2/+1
| | | | | | | | | | 3.5 compatibility 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-231-0/+1
|
* Improved warning message when reloading models. Refs #23621.Loic Bistuer2014-10-221-1/+4
| | | | Thanks dfunckt and Tim Graham.
* Fixed #23621 -- Warn for duplicate models when a module ↵Loic Bistuer2014-10-221-0/+36
| | | | | | | | | | | is reloaded. 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 ↵Carl Meyer2014-01-271-1/+66
| | | | | | | | | | | | | | | | filesystem path. 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 ↵Carl Meyer2014-01-261-14/+4
| | | | | | and used throughout test suite. Thanks Aymeric for the suggestion.
* Fixed #17304 -- Allow single-path and configured-path ↵Carl Meyer2014-01-263-0/+75
| | | | | | | | | | namespace packages as 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.
* Fixed #21829 -- Added default AppConfigs.Aymeric Augustin2014-01-253-0/+12
| | | | | Thanks Russell for the report, Marc for the initial patch, Carl for the final review, and everyone who contributed to the design discussion.
* Fixed #21871 -- Fixed Apps.is_installed() for apps with ↵Carl Meyer2014-01-252-0/+2
| | | | | | custom label. Thanks Aymeric for design discussion.
* Fixed #21718 -- Renamed has_app to is_installed.Aymeric Augustin2014-01-061-4/+4
|
* Enforced unicity of app labels.Aymeric Augustin2013-12-312-0/+15
| | | | Fixed #21679.
* Made it possible to change an application's label in its ↵Aymeric Augustin2013-12-312-0/+9
| | | | | | configuration. Fixed #21683.
* Removed the only_with_models_module argument of ↵Aymeric Augustin2013-12-301-23/+0
| | | | | | | | | get_model[s]. 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.
* Populated Apps instances immediately by default.Aymeric Augustin2013-12-302-14/+5
|
* Deprecated the app argument of apps.get_models.Aymeric Augustin2013-12-291-5/+2
| | | | Use app_config.get_models() instead.
* Changed get_model to raise an exception on errors.Aymeric Augustin2013-12-281-2/+6
| | | | | | | | | | | | 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.
* Populated non-master app registries.Aymeric Augustin2013-12-281-2/+4
| | | | | | | | This removes the gap between the master app registry and ad-hoc app registries created by the migration framework, specifically in terms of behavior of the get_model[s] methods. This commit contains a stealth feature that I'd rather not describe.
* Fixed a couple flake8 warnings.Aymeric Augustin2013-12-272-3/+0
|
* Added a test for Apps.has_app.Aymeric Augustin2013-12-261-0/+6
|
* Added file forgotten in previous commit, plus one more test.Aymeric Augustin2013-12-262-1/+32
|
* Added tests for invalid values of INSTALLED_APPS.Aymeric Augustin2013-12-261-0/+34
|
* Added basic tests for get_app_config[s].Aymeric Augustin2013-12-262-4/+72
|
* Turned apps.ready into a property. Added tests.Aymeric Augustin2013-12-261-7/+23
|
* Renamed AppCache to Apps.Aymeric Augustin2013-12-243-0/+68
Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().