summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #32813 -- Made runserver display port after binding.Dhanush2023-02-101-10/+13
| | | | Thanks Florian Apolloner for the review.
* Refs #33476 -- Applied Black's 2023 stable style.David Smith2023-02-014-4/+0
| | | | | | | | 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
* Fixed #34233 -- Dropped support for Python 3.8 and 3.9.Mariusz Felisiak2023-01-181-6/+3
|
* Fixed #34085 -- Made management commands don't use black for non-Python files.Carlton Gibson2022-10-202-0/+22
| | | | | | | Bug in d113b5a837f726d1c638d76c4e88445e6cd59fd5. Co-authored-by: programmylife <acmshar@gmail.com> Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
* Fixed #34068 -- Corrected output of runserver command for "0" IP address.Dhanush2022-10-041-0/+15
| | | | Thanks David Sanders for the review.
* Refs #33476 -- Made management commands use black.Carlton Gibson2022-02-112-9/+18
| | | | Run black on generated files, if it is available on PATH.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-94/+373
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-0722-702/+916
|
* Fixed #32397 -- Made startapp/startproject management commands set User-Agent.Ad Timmering2021-11-251-0/+31
| | | | This sets User-Agent to 'Django/<version>'.
* Fixed #4282 -- Made startapp/startproject management commands honor umask.Ad Timmering2021-11-241-3/+30
| | | | Co-authored-by: Christian Schmitt <c.schmitt@briefdomain.de>
* Refs #32355 -- Modernized subprocess.run() calls.Adam Johnson2021-09-271-2/+3
|
* Fixed #32309 -- Added --exclude option to startapp/startproject management ↵sage2021-09-011-0/+64
| | | | commands.
* Refs #32309 -- Added test for excluding hidden directories in startproject ↵sage2021-09-012-0/+19
| | | | command.
* Fixed #25264 -- Allowed suppressing base command options in --help output.Jan Szoja2021-08-312-0/+61
| | | | | This also suppresses -verbosity and --trackback options in the runserver's help.
* Refs #25264 -- Added test for command --help output with default options and ↵Jan Szoja2021-08-311-0/+25
| | | | custom arguments.
* Refs #32379 -- Added USE_TZ settings to AdminScriptTestCase.write_settings().Mariusz Felisiak2021-05-251-0/+1
|
* Fixed #32734 -- Fixed validation of startapp's directory with trailing slash.Rohith PR2021-05-141-0/+7
| | | | Regression in fc9566d42daf28cdaa25a5db1b5ade253ceb064f.
* Fixed #32296 -- Added --skip-checks option to runserver command.Hasan Ramezani2021-01-181-0/+23
|
* Refs #23433 -- Removed django-admin.py entry point per deprecation timeline.Mariusz Felisiak2021-01-142-48/+14
|
* Fixed #31007 -- Allowed specifying type of auto-created primary keys.Tom Forbes2020-12-151-0/+15
| | | | | This also changes the default type of auto-created primary keys for new apps and projects to BigAutoField.
* Fixed #32177 -- Made execute_from_command_line() use program name from the ↵William Schwartz2020-11-101-1/+16
| | | | | | | argv argument. This caused crash in environments where sys.argv[0] is incorrectly set to None.
* Corrected docstring quotes in various code.Mariusz Felisiak2020-09-221-1/+1
|
* Reverted "Refs #23919 -- Removed obsolete __init__.py files in management ↵René Fleschenberg2020-06-016-0/+0
| | | | | | | | command directories." This reverts commit ccc25bfe4f0964a00df3af6f91c2d9e20159a0c2. https://groups.google.com/d/topic/django-developers/GVHMH2ciAnk/discussion
* Fixed #31546 -- Allowed specifying list of tags in ↵Hasan Ramezani2020-05-215-7/+7
| | | | Command.requires_system_checks.
* Fixed #31575 -- Added system check for admin sidebar request context ↵Jon Dufresne2020-05-141-0/+1
| | | | | | processor dependency. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
* Removed unnecessary capturing/hiding of stdout/stderr in various tests.François Freitag2020-04-271-3/+2
|
* Capitalized Unicode in docs, strings, and comments.Jon Dufresne2020-04-201-1/+1
|
* Refs #23433 -- Fixed test_django_admin_py.DeprecationTest tests failures on ↵Mariusz Felisiak2019-12-101-5/+7
| | | | | | Windows and Python < 3.8. subprocess.run()'s args parameter accepts a path-like object on Windows since Python 3.8.
* Fixed #23433 -- Deprecated django-admin.py entry point in favor of django-admin.Jon Dufresne2019-12-062-11/+48
| | | | Unify on the entry point created by setuptools entry_points feature.
* Refs #23433 -- Removed script argument from AdminScriptTestCase.run_test().Jon Dufresne2019-12-061-6/+6
|
* Removed unnecessary __init__.py creation in admin_scripts.tests.Jon Dufresne2019-12-061-2/+0
|
* Fixed typo in tests/admin_scripts/tests.py.Daniel Musketa2019-10-181-1/+1
|
* Fixed #30872 -- Improved unknown command message when settings are manually ↵Carlton Gibson2019-10-151-0/+9
| | | | configured.
* Replaced subprocess commands by run() wherever possible.Claude Paroz2019-08-231-2/+3
|
* Fixed #30312 -- Relaxed admin check from django.contrib.sessions to ↵Aarni Koskela2019-04-261-1/+1
| | | | SessionMiddleware subclasses.
* Fixed #30393 -- Added validation of startapp's directory option.oliver2019-04-251-0/+19
|
* Made startapp/project's overlaying error message use 'app' or 'project'.oliver2019-03-301-1/+14
|
* Refs #30057 -- Added more diffsettings tests.orlnub1232019-02-262-4/+34
| | | | | The test in 573f44d62fe1e87e2c20a74eba5e20ca9ff0ed85 doesn't act as a regression test.
* Fixed admin_scripts test failures on macOS.Carlton Gibson2019-02-141-1/+3
| | | Regression in 487d904bf253de2f5633f181a168f94086bcd6cb.
* Refs #27804 -- Used subTest() in admin_scripts invalid name tests.Jon Dufresne2019-02-061-20/+22
|
* Simplified temporary directory handling in AdminScriptTestCase.Jon Dufresne2019-02-051-121/+24
| | | | | | | | 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.
* Replaced manual current directory management with subprocess's cwd argument.Jon Dufresne2019-02-051-8/+2
|
* Fixed #30147 -- Simplified directory creation with os.makedirs(..., ↵Jon Dufresne2019-01-311-2/+1
| | | | exist_ok=True).
* Fixed #30116 -- Dropped support for Python 3.5.Tim Graham2019-01-301-2/+1
|
* Removed default mode='r' argument from calls to open().Jon Dufresne2019-01-271-5/+5
|
* Refs #23919 -- Replaced codecs.open() with open().Jon Dufresne2019-01-271-2/+1
| | | | On Python 3, open() handles encodings.
* Fixed #30057 -- Fixed diffsettings ignoring custom configured settings.orlnub1232019-01-122-2/+2
| | | | Regression in 49b679371fe9beddcd23a93b5fdbadea914f37f8.
* Updated test URL patterns to use path() and re_path().Tim Graham2018-12-311-3/+3
|
* Fixed #29560 -- Added --force-color management command option.Hasan Ramezani2018-09-111-33/+70
|
* Reused a duplicated class in admin_scripts tests.Tim Graham2018-09-111-17/+10
|