summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
AgeCommit message (Collapse)Author
2016-01-25[1.9.x] Fixed #25968 -- Changed project/app templates to use a "py-tpl" suffix.Chris Lamb
Debian packages unconditionally byte-compile .py files on installation and do not silence errors by design. Therefore, we need a way of shipping these invalid .py files without a .py extension but ensuring that when we template them, they end up as .py. We don't special-case .py files so that the all the TemplateCommand command-line options (eg. extra_files and extensions) still work entirely as expected and it may even be useful for other formats too. Backport of abc0777b63057e2ff97eee2ff184356051e14c47 from master
2015-12-12[1.9.x] Fixed #25909 -- Added unicode_literals import to apps.py generated ↵Tim Graham
by startapp. Backport of 10427646b887586bf89dacb3b5208b3ad2d17308 from master
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-09-09Supported running admin_script testcases concurrently.Aymeric Augustin
2015-09-07Fixed #24857 -- Added "python -m django" entry point.Ryan Hiebert
2015-09-07Fixed #25356 -- Removed default_app_config from startapp template.Tim Graham
Also discouraged its use outside the intended use case.
2015-09-03Removed some test settings following removal of compatibility checks.Tim Graham
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
2015-08-19Fixed #25285 -- Provided unknown command message with plain django-admin.pyClaude Paroz
Thanks Maxime Lorant for the report and Tim Graham for suggesting the improved comment.
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-06-16Fixed #24971 -- Made startapp generate an apps.pyMounir Messelmeni
2015-06-11Fixed #24950 -- Added unicode_literals to models.py in app templateMarkus Holtermann
Thanks Tim Graham for the patch
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-05-13Fixed #24742 -- Made runserver.check_migrations ignore read-only databasesClaude Paroz
Thanks Luis Del Giudice for the report, and Aymeric Augustin and Markus Holtermann for the reviews.
2015-04-04Fixed #24571 -- Restored testserver positional arguments parsingClaude Paroz
Thanks Domas Lapinskas for the report and Tim Graham for the review.
2015-02-23Guaranteed removal of temporary files during tests.Aymeric Augustin
Dropped the DJANGO_TEST_TEMP_DIR environment variable. Before this change, proper removal depended on the developer passing dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions.
2015-02-17Refs #24324 -- Fixed Python 2 test failures when path to Django source ↵Tim Graham
contains non-ASCII characters.
2015-02-11Prevented some test commands from needlessly running system checks.Tim Graham
This is a performance optimization and also fixes test errors with the upcoming merge of contrib tests into tests/. The tests failed on MySQL because the models with GeometryField were being checked but the non-GIS MySQL backend didn't know how to handle them.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-18Removed support for syncing apps without migrations per deprecation timeline.Tim Graham
Kept support for creating models without migrations when running tests (especially for Django's test suite).
2015-01-17Removed unused imports from previous commit.Tim Graham
2015-01-17Removed BaseCommand.requires_model_validation per deprecation timeline.Tim Graham
2015-01-17Removed support for custom SQL per deprecation timeline.Tim Graham
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
2014-12-29Fixed #21255 -- Closed connections after management command ranClaude Paroz
Thanks kabakov.as@gmail.com for the report, and Aymeric Augustin, Simon Charette for the reviews.
2014-12-26Removed an unnecessary models file in the admin_scripts tests.Tim Graham
2014-12-26Replaced sqlall in some bash_completion/admin_scripts tests.Tim Graham
sqlall will be removed in Django 1.9, so now's a good time to remove its usage where it's not important.
2014-11-03Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag
2014-10-22Refactored color_style() and no_style() to improve testability. Refs #23663.Loic Bistuer
This includes the following improvements: - The type of the style object is now called 'Style' rather than 'dummy'. - The new make_style() function allows generating a Style object directly from a config string. Before the only way to get a style object was through the environ and it also required that the terminal supported colors which isn't necessarily the case when testing. - The output of no_style() is now cached with @lru_cache. - The output of no_style() now has the same set of attributes as the other Style objects. Previously it allowed anything to pass through with __getattr__.
2014-10-22Fixed #23686 -- Tweak color output of the system check framework.Loic Bistuer
Thanks Tim Graham for the review.
2014-10-22Made testing of stdout and stderr more consistent.Loic Bistuer
Refs #23663.
2014-10-22Fixed #23663 -- Initialize output streams for BaseCommand in __init__().Loic Bistuer
This helps with testability of management commands. Thanks to trac username daveoncode for the report and to Tim Graham and Claude Paroz for the reviews.
2014-10-22Fixed #23107 -- Made runserver output respect --no-color.Loic Bistuer
This commit reverts 67d7da5fb9498b811f0168f5df2308ad4743027f. The previous fix changed the environment globally, which meant that any call to `call_command(no_color=True)` prevented further `call_command` with color. This fix still relies on the environment because it's currently the only way to reach WSGIRequestHandler, but it's now limited to the `runserver` command. This seems an acceptable compromise considering `runserver` runs indefinitely. Thanks Tim Graham for the review.
2014-09-17Fixed #23495 -- Stopped swallowing real settings import errorClaude Paroz
Thanks papaloizouc for the report.
2014-08-18Fixed #23136 -- Added a message when sqlclear does nothingGabriel Muñumel
2014-08-12Fixed #23276 -- Deprecated passing views as strings to url().Tim Graham
2014-07-30Fixed #23107 -- Made runserver output respect --no-color.areski
2014-06-19Fixed #22835 -- Deprecated NoArgsCommand.Maxime Turcotte
2014-06-14Fixed #7762 -- Hidden full script name in command error outputClaude Paroz
2014-06-14Restored command error behavior when called from command lineClaude Paroz
Refs #19973.
2014-06-14Fixed several flake8 errorsAlex Gaynor
2014-06-14Converted remaining management commands to argparseClaude Paroz
2014-06-14Fixed #19973 -- Replaced optparse by argparse in management commandsClaude Paroz
Thanks Tim Graham for the review.
2014-06-13Fixed #22477 -- Removed contrib middleware from the global settings defaults.mlavin
Also added a compatibility check for changed middleware defaults. Forwardport of d94de802d3 from stable/1.7.x
2014-05-27Fixed #22699 -- Configure default settings in some management commands.Aymeric Augustin
This makes it possible to run django.setup() in management commands that don't need a settings module. In addition it simplifies error handling. Thanks Claude for the review.
2014-05-16Fixed #21634 -- Prevented hiding ImproperlyConfigured when command not foundClaude Paroz
Thanks nikolay.v.golub@gmail.com for the report.
2014-04-26Fix many many typos in comments throughout the codebaseAlex Gaynor
2014-04-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi
2014-04-03Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-03-11Fixed test failures on Windows.Tim Graham
refs #21092 and 8d7e048a8b428bebe82be735a84570f9250441e6