summaryrefslogtreecommitdiff
path: root/tests/admin_scripts/tests.py
AgeCommit message (Collapse)Author
2018-05-26[2.1.x] Reverted "Fixed #29324 -- Made Settings raise ImproperlyConfigured ↵Tim Graham
if SECRET_KEY is accessed and not set." This reverts commit b3cffde5559c4fa97625512d7ec41a674be26076 due to a regression and performance concerns. Backport of 5cc81cd9eb69f5f7a711412c02039b435c393135 from master
2018-04-17Fixed #29324 -- Made Settings raise ImproperlyConfigured if SECRET_KEY is ↵Jon Dufresne
accessed and not set.
2018-04-11Fixed #29301 -- Made management command --help display command-specific ↵David Foster
arguments before common arguments.
2018-02-21Fixed #28398 -- Added suggestions for mistyped management commands.Tom Forbes
2017-12-23Fixed #28594 -- Removed Jython docs and specific codeClaude Paroz
Thanks Andrey Martyanov for the reporti, and Tim Graham for the review.
2017-12-20Moved unnecessary inner imports in admin_scripts tests.Tim Graham
2017-12-20Fixed #28941 -- Fixed crash in testserver command startup.Tim Graham
Regression in 2b09e4c88e96cb03b29f5a6b0e4838ab4271e631.
2017-12-07Fixed #28791 -- Allowed commands that don't require settings to work if the ↵geekodour
DJANGO_SETTINGS_MODULE doesn't exist.
2017-10-13Fixed #28708 -- Added constants to detect the Python version.Tim Graham
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-08-31Fixed #28524 -- Fixed program name in management commands when using 'python ↵Nick Pope
-m django'.
2017-06-28Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen
2017-06-19Fixed #27858 -- Prevented read-only management commands from creating the ↵Marti Raudsepp
django_migrations table. MigrationRecorder now assumes that if the django_migrations table doesn't exist, then no migrations are applied. Reverted documentation change from refs #23808.
2017-05-30Improved test coverage for startapp/startproject management commands.Adam Johnson
2017-05-27Fixed #27881 -- Added diffsettings --output option.Chris Lamb
Thanks Haris Ibrahim K. V. for writng docs.
2017-05-10Fixed db backend discovery in admin_scripts tests.Florian Apolloner
Not all backends have dots in them.
2017-02-03Fixed spelling of "nonexistent".Tim Graham
2017-01-27Refs #27537 -- Added default_addr(_ipv6) attributes to runserver command.Ed Morley
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-24Removed unneeded force_text calls in the test suiteClaude Paroz
2017-01-21Refs #23919 -- Removed misc references to Python 2.Tim Graham
2017-01-20Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham
2017-01-20Refs #23919 -- Removed unneeded str() callsClaude Paroz
2017-01-20Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham
These functions do nothing on Python 3.
2017-01-20Refs #23919 -- Removed unneeded force_str callsClaude Paroz
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
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-12-23Fixed #27626 -- Moved MEDIA_URL/STATIC_URL validation to a system check.Adam Chainz
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-11-10Fixed #27438 -- Added the diffsettings --default option.Paweł Marczewski
2016-09-17Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.Tim Graham
http://bugs.python.org/issue27364
2016-09-16Refs #27025 -- Fixed tests for the new ModuleNotFoundError in Python 3.6.Tim Graham
http://bugs.python.org/issue15767
2016-09-03Fixed #27171 -- Added unicode_literals and coding preamble to all files in ↵Ivan
startapp template on Python 2.
2016-06-23Fixed #26791 -- Replaced LiveServerTestCase port ranges with binding to port 0.Tim Graham
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-03-05Fixed #26315 -- Allowed call_command() to accept a Command object as the ↵Jon Dufresne
first argument.
2016-03-05Cleaned up tests to use call_command() instead of Command.execute().Jon Dufresne
2016-02-12Fixed #25304 -- Allowed management commands to check if migrations are applied.Mounir Messelmeni
2016-01-25Fixed #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.
2015-12-21Fixed #25855 -- Enhanced the migration warning for runserver.Emre Yilmaz
Added unapplied migration count and the list of unmigrated apps.
2015-12-12Fixed #25909 -- Added unicode_literals import to apps.py generated by startapp.Tim Graham
2015-10-22Refs #25589 -- Fixed admin_scripts test failure on Windows.Tim Graham
Traceback (most recent call last): File "tests\admin_scripts\tests.py", line 646, in test_startapp_unicode_name content = f.read() File "lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 46: character maps to <undefined>
2015-10-22Fixed #25589 -- Allowed startapp/project to create apps with Unicode ↵Yoong Kang Lim
characters in the name.
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