summaryrefslogtreecommitdiff
path: root/tests/admin_scripts/tests.py
AgeCommit message (Collapse)Author
2023-02-10[4.2.x] Fixed #32813 -- Made runserver display port after binding.Dhanush
Thanks Florian Apolloner for the review. Backport of a18d20ca97e6799152c1e0b6f007fde943053dcb from main
2023-02-01[4.2.x] Refs #33476 -- Applied Black's 2023 stable style.David Smith
Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 Backport of 097e3a70c1481ee7b042b2edd91b2be86fb7b5b6 from main
2022-10-20Fixed #34085 -- Made management commands don't use black for non-Python files.Carlton Gibson
Bug in d113b5a837f726d1c638d76c4e88445e6cd59fd5. Co-authored-by: programmylife <acmshar@gmail.com> Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2022-10-04Fixed #34068 -- Corrected output of runserver command for "0" IP address.Dhanush
Thanks David Sanders for the review.
2022-02-11Refs #33476 -- Made management commands use black.Carlton Gibson
Run black on generated files, if it is available on PATH.
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-11-25Fixed #32397 -- Made startapp/startproject management commands set User-Agent.Ad Timmering
This sets User-Agent to 'Django/<version>'.
2021-11-24Fixed #4282 -- Made startapp/startproject management commands honor umask.Ad Timmering
Co-authored-by: Christian Schmitt <c.schmitt@briefdomain.de>
2021-09-27Refs #32355 -- Modernized subprocess.run() calls.Adam Johnson
2021-09-01Fixed #32309 -- Added --exclude option to startapp/startproject management ↵sage
commands.
2021-09-01Refs #32309 -- Added test for excluding hidden directories in startproject ↵sage
command.
2021-08-31Fixed #25264 -- Allowed suppressing base command options in --help output.Jan Szoja
This also suppresses -verbosity and --trackback options in the runserver's help.
2021-08-31Refs #25264 -- Added test for command --help output with default options and ↵Jan Szoja
custom arguments.
2021-05-25Refs #32379 -- Added USE_TZ settings to AdminScriptTestCase.write_settings().Mariusz Felisiak
2021-05-14Fixed #32734 -- Fixed validation of startapp's directory with trailing slash.Rohith PR
Regression in fc9566d42daf28cdaa25a5db1b5ade253ceb064f.
2021-01-18Fixed #32296 -- Added --skip-checks option to runserver command.Hasan Ramezani
2021-01-14Refs #23433 -- Removed django-admin.py entry point per deprecation timeline.Mariusz Felisiak
2020-12-15Fixed #31007 -- Allowed specifying type of auto-created primary keys.Tom Forbes
This also changes the default type of auto-created primary keys for new apps and projects to BigAutoField.
2020-11-10Fixed #32177 -- Made execute_from_command_line() use program name from the ↵William Schwartz
argv argument. This caused crash in environments where sys.argv[0] is incorrectly set to None.
2020-09-22Corrected docstring quotes in various code.Mariusz Felisiak
2020-05-21Fixed #31546 -- Allowed specifying list of tags in ↵Hasan Ramezani
Command.requires_system_checks.
2020-05-14Fixed #31575 -- Added system check for admin sidebar request context ↵Jon Dufresne
processor dependency. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2020-04-27Removed unnecessary capturing/hiding of stdout/stderr in various tests.François Freitag
2020-04-20Capitalized Unicode in docs, strings, and comments.Jon Dufresne
2019-12-06Fixed #23433 -- Deprecated django-admin.py entry point in favor of django-admin.Jon Dufresne
Unify on the entry point created by setuptools entry_points feature.
2019-12-06Refs #23433 -- Removed script argument from AdminScriptTestCase.run_test().Jon Dufresne
2019-12-06Removed unnecessary __init__.py creation in admin_scripts.tests.Jon Dufresne
2019-10-18Fixed typo in tests/admin_scripts/tests.py.Daniel Musketa
2019-10-15Fixed #30872 -- Improved unknown command message when settings are manually ↵Carlton Gibson
configured.
2019-08-23Replaced subprocess commands by run() wherever possible.Claude Paroz
2019-04-26Fixed #30312 -- Relaxed admin check from django.contrib.sessions to ↵Aarni Koskela
SessionMiddleware subclasses.
2019-04-25Fixed #30393 -- Added validation of startapp's directory option.oliver
2019-03-30Made startapp/project's overlaying error message use 'app' or 'project'.oliver
2019-02-26Refs #30057 -- Added more diffsettings tests.orlnub123
The test in 573f44d62fe1e87e2c20a74eba5e20ca9ff0ed85 doesn't act as a regression test.
2019-02-14Fixed admin_scripts test failures on macOS.Carlton Gibson
Regression in 487d904bf253de2f5633f181a168f94086bcd6cb.
2019-02-06Refs #27804 -- Used subTest() in admin_scripts invalid name tests.Jon Dufresne
2019-02-05Simplified temporary directory handling in AdminScriptTestCase.Jon Dufresne
Use tempfile.TemporaryDirectory() in AdminScriptTestCase.setUp() to create and destroy a temporary directory for each test. It removes the need for individual tests to delete files. For test classes that don't use the temporary directory, inherit from SimpleTestCase.
2019-02-05Replaced manual current directory management with subprocess's cwd argument.Jon Dufresne
2019-01-31Fixed #30147 -- Simplified directory creation with os.makedirs(..., ↵Jon Dufresne
exist_ok=True).
2019-01-30Fixed #30116 -- Dropped support for Python 3.5.Tim Graham
2019-01-27Removed default mode='r' argument from calls to open().Jon Dufresne
2019-01-27Refs #23919 -- Replaced codecs.open() with open().Jon Dufresne
On Python 3, open() handles encodings.
2019-01-12Fixed #30057 -- Fixed diffsettings ignoring custom configured settings.orlnub123
Regression in 49b679371fe9beddcd23a93b5fdbadea914f37f8.
2018-09-11Fixed #29560 -- Added --force-color management command option.Hasan Ramezani
2018-09-11Reused a duplicated class in admin_scripts tests.Tim Graham
2018-08-20Fixed #29695 -- Added system checks for admin's app dependencies and ↵Rodrigo
TEMPLATES setting.
2018-08-20Fixed #29236 -- Fixed diffsettings crash if using settings.configure().Hasan Ramezani
2018-05-26Reverted "Fixed #29324 -- Made Settings raise ImproperlyConfigured if ↵Tim Graham
SECRET_KEY is accessed and not set." This reverts commit b3cffde5559c4fa97625512d7ec41a674be26076 due to a regression and performance concerns.
2018-04-17Fixed #29324 -- Made Settings raise ImproperlyConfigured if SECRET_KEY is ↵Jon Dufresne
accessed and not set.