Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/admin_scripts
Commit message (Collapse)AuthorAgeFilesLines
...
* Improved compatibility in admin_scripts testsClaude Paroz2014-03-081-3/+4
| | | | | | Environment keys/values need to use native strings on some plateforms. Thanks anubhav joshi for detecting the issue and helping shaping the patch.
* Fixed #21092 -- Ensured admin_scripts tests are run with ↵Claude Paroz2014-03-081-0/+1
| | | | warnings off
* Avoided modifying current environment in admin_scripts testsClaude Paroz2014-03-081-13/+7
|
* Fixed many typos in comments and docstrings.Rodolfo Carvalho2014-03-031-2/+2
| | | | Thanks Piotr Kasprzyk for help with the patch.
* Fixed #22057 -- Ensured reverse_lazy can be used in settingsClaude Paroz2014-02-181-1/+3
| | | | | And without causing a circular import. Thanks Akis Kesoglou for the report.
* Fixed #21849 -- Included the count of silenced system ↵Tim Graham2014-01-281-4/+4
| | | | checks in output.
* Fixed #21829 -- Added default AppConfigs.Aymeric Augustin2014-01-251-1/+1
| | | | | Thanks Russell for the report, Marc for the initial patch, Carl for the final review, and everyone who contributed to the design discussion.
* Added warning silencers to some noisy tests.Russell Keith-Magee2014-01-202-4/+6
| | | | | | These warnings all emerged as the result of the introduction of the checks framework. Thanks to Anssi Kääriäinen for the report.
* Fixed #16905 -- Added extensible checks (nee validation) ↵Russell Keith-Magee2014-01-2010-57/+202
| | | | | | | | | | | framework This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
* Fixed #21774 -- Isolate all test urls from eachother.Marc Tamlyn2014-01-141-2/+3
| | | | | | | | | | | | | This (nearly) completes the work to isolate all the test modules from each other. This is now more important as importing models from another module will case PendingDeprecationWarnings if those modules are not in INSTALLED_APPS. The only remaining obvious dependencies are: - d.c.auth depends on d.c.admin (because of the is_admin flag to some views), but this is not so important and d.c.admin is in always_installed_apps - test_client_regress depends on test_client. Eventually these should become a single module, as the split serves no useful purpose.
* Fixed #21018 -- Reversed precedence order for management ↵Aymeric Augustin2014-01-017-1/+33
| | | | commands.
* Used app_label instead of appname.Aymeric Augustin2013-12-282-3/+3
| | | | | | | The last component of the dotted path to the application module is consistently referenced as the application "label". For instance it's AppConfig.label. appname could be confused with AppConfig.name, which is the full dotted path.
* Migrated built-in AppCommands to use handle_app_config.Aymeric Augustin2013-12-282-12/+9
|
* Deprecated load_app().Aymeric Augustin2013-12-221-1/+1
| | | | | | | | | Adjusted several tests that used it to add apps to the app cache and then attempted to remove them by manipulating attributes directly. Also renamed invalid_models to invalid_models_tests to avoid clashing application labels between the outer and the inner invalid_models applications.
* Removed the only_installed argument of get_app_config[s].Aymeric Augustin2013-12-221-8/+8
| | | | | It wasn't used anywhere and couldn't be implemented any more since non-installed apps no longer have a configuration.
* Removed superfluous models.py files.Aymeric Augustin2013-12-171-1/+0
| | | | | | | Added comments in the three empty models.py files that are still needed. Adjusted the test runner to add applications corresponding to test labels to INSTALLED_APPS even when they don't have a models module.
* Added get_app_config() to look up app configs by label.Aymeric Augustin2013-12-171-8/+8
| | | | | | | | | | | | | | | | | | | | | | | Refactored get_app() to rely on that method. get_app() starts by calling _populate(), which goes through INSTALLED_APPS and, for each app, imports the app module and attempts to import the models module. At this point, no further imports are necessary to return the models module for a given app. Therefore, the implementation of get_app() can be simplified and the safeguards for race conditions can be removed. Besides, the emptyOK parameter isn't used anywhere in Django. It was introduced in d6c95e93 but not actually used nor documented, and it has just been carried around since then. Since it's an obscure private API, it's acceptable to stop supporting it without a deprecation path. This branch aims at providing first-class support for applications without a models module eventually. For backwards-compatibility, get_app() still raises ImproperlyConfigured when an app isn't found, even though LookupError is technically more correct. I haven't gone as far as to preserve the exact error messages. I've adjusted a few tests instead.
* PEP8 cleanupJason Myers2013-11-031-0/+9
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-023-3/+3
|
* Fix all violators of E231Alex Gaynor2013-10-261-3/+3
|
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-233-0/+3
|
* Workaround admin scripts test failures on Windows+Python 3.Ramiro Morales2013-10-231-3/+3
| | | | | | | | | Change strategy used to examine instrumented output to acommodate the fact that on Windows, where the path separator is '\', repr() of Python modules has changed in Python 3 to use escaped backslashes in the FS path section (e.g. 'C:\\python3x\\Lib\\site-packages\\django\\contrib\\auth\\models.py') without having to special-case based on platform.
* Fixed #19724 -- Output note when showing only core ↵Claude Paroz2013-10-211-0/+11
| | | | | | | | | management commands When listing available management commands, only core commands are listed if settings have any error. This commit adds a note in this case so errors are not totally silently skipped. Thanks Peter Davis for the report.
* Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol2013-10-181-1/+1
|
* Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol2013-10-181-1/+0
|
* Fixed #21284 -- Prevented KeyError swallowing in ↵Claude Paroz2013-10-171-14/+18
| | | | | | fetch_command Thanks wildfire for the report.
* Fixed #21269 -- Don't crash when CommandError contains ↵Claude Paroz2013-10-141-20/+36
| | | | | | non-ascii Thanks kontakt@eikefoken.de for the report.
* Whitespace cleanup.Tim Graham2013-10-105-5/+4
| | | | | | | * Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
* Modified test added in 3afb5916b2 so it doesn't fail on ↵Ramiro Morales2013-09-301-3/+4
| | | | | | Windows. Refs #18091.
* Removed a ton of unused local varsAlex Gaynor2013-09-081-1/+0
|
* Removed part of a test that doesn't work on Jenkins; ↵Tim Graham2013-07-301-4/+0
| | | | refs #19877.
* Fixed a test that depended on the DB backend; refs ↵Tim Graham2013-07-302-11/+16
| | | | #19877. Thanks Loic.
* Fixed #19877 -- Added `--no-color` option to ↵Jose L. Patino2013-07-301-20/+42
| | | | `BaseCommand` to avoid using output styles.
* Removed most of absolute_import importsClaude Paroz2013-07-293-6/+0
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Add utf-8 preamble to admin_scripts temp settings fileClaude Paroz2013-07-291-0/+1
| | | | | As some settings are copied from current user settings, we cannot be sure the characters are pure ascii.
* Stopped using django.utils.unittest in the test suite.Aymeric Augustin2013-07-011-2/+2
| | | | Refs #20680.
* Advanced deprecation warnings for Django 1.7.Aymeric Augustin2013-06-292-4/+3
|
* Defined available_apps in relevant tests.Aymeric Augustin2013-06-101-0/+7
| | | | Fixed #20483.
* Added runserver validation to detect if DEBUG=False and ↵Tim Graham2013-06-091-0/+15
| | | | | | ALLOWED_HOSTS is empty. Refs #19875.
* Fixed #20509 - Proper parsing for dumpdata --pks option.Tim Graham2013-05-301-0/+19
| | | | Thanks weipin for the report and Baptiste Mispelon for the patch.
* Fixed #20445 -- Raised original exception after command ↵Jorge Bastida2013-05-201-9/+11
| | | | error
* Fixed #17365, #17366, #18727 -- Switched to discovery ↵Carl Meyer2013-05-111-3/+3
| | | | | | | | | | | test runner. Thanks to Preston Timmons for the bulk of the work on the patch, especially updating Django's own test suite to comply with the requirements of the new runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on the patch and the discovery runner. Refs #11077, #17032, and #18670.
* Fixed test failures introduced in ↵Florian Apolloner2013-05-011-3/+4
| | | | a5becad9094e5c5403b692b9a7b3a6ffaabf64a3.
* Fixed #17037 -- Added a --all option to diffsettings.Aymeric Augustin2013-03-181-1/+11
|
* Fixed #19923 -- Display tracebacks for non-CommandError ↵Claude Paroz2013-03-091-4/+16
| | | | | | | | exceptions By default, show tracebacks for management command errors when the exception is not a CommandError. Thanks Jacob Radford for the report.
* use the real path to fix OS X /var/folders vs. ↵Łukasz Langa2013-02-271-1/+1
| | | | /private/var/folders mismatch
* Fixed discovery of the Django installation during tests.Florian Apolloner2013-02-261-3/+6
| | | | | | If Django was symlinked into site-packages the previous approach to discover the tests subdirectory would fail. The revised version now always points to the location of the source and not the import path.
* fixed admin_scripts tests on python 3.3Florian Apolloner2013-02-261-2/+2
|
* Renamed some tests and removed references to ↵Florian Apolloner2013-02-261-64/+71
| | | | modeltests/regressiontests.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-2636-0/+1790