summaryrefslogtreecommitdiff
path: root/tests/user_commands
AgeCommit message (Collapse)Author
2020-10-30Fixed #32153 -- Fixed management commands when using required list options.Hasan Ramezani
Thanks Mark Gajdosik for the report and initial patch.
2020-10-09Fixed #32094 -- Fixed flush() calls on management command self.stdout/err ↵Thomas Riccardi
proxies.
2020-10-06Refs #32047 -- Added test for using call_command() with constant required ↵Hasan Ramezani
options.
2020-09-30Fixed #32047 -- Fixed call_command() crash if a constant option from ↵Hasan Ramezani
required mutually exclusive group is passed in options.
2020-06-01Reverted "Refs #23919 -- Removed obsolete __init__.py files in management ↵René Fleschenberg
command directories." This reverts commit ccc25bfe4f0964a00df3af6f91c2d9e20159a0c2. https://groups.google.com/d/topic/django-developers/GVHMH2ciAnk/discussion
2020-05-21Fixed #31546 -- Allowed specifying list of tags in ↵Hasan Ramezani
Command.requires_system_checks.
2020-04-20Disabled management commands output with verbosity 0 in various tests.François Freitag
Instead of capturing the command output and discard it immediately, tell the command not to log.
2020-04-14Refs #29501 -- Allowed customizing exit status for management commands.Adam Johnson
2020-04-07Fixed #31428 -- Allowed empty message in management command self.stdout/err ↵François Freitag
proxies.
2019-09-06Fixed #30763 -- Fixed management commands when using required mutually ↵Hasan Ramezani
exclusive groups.
2019-06-28Fixed #30584 -- Fixed management command when using subparsers with dest ↵Hasan Ramezani
parameter.
2019-04-30Fixed #30418 -- Added --skip-checks management command option.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-01-28Refs #29973 -- Extracted helper functions from makemessages.rsiemens
2018-12-31Updated test URL patterns to use path() and re_path().Tim Graham
2018-09-11Fixed #29560 -- Added --force-color management command option.Hasan Ramezani
2018-08-05Added test for django.core.management.utils.get_random_secret_key().Hasan Ramezani
2018-07-02Removed parser.add_arguments() arguments that match the defaults.Claude Paroz
2018-06-16Fixed #29152 -- Allowed passing kwargs to ArgumentParser initialization in ↵humbertotm
management commands.
2018-06-06Fixed #29301 -- Added custom help formatter to BaseCommand classClaude Paroz
This partially reverts c3055242c81812278ebdc93dd109f30d2cbd1610. Thanks Adam Johnson and Carlton Gibson for the reviews.
2018-05-14Fixed #29392 -- Disallowed use of abbreviated forms of --settings and ↵Ryan P Kilby
--pythonpath management command options.
2018-05-13Fixed #17379 -- Removed management commands deactivation of the locale.Claude Paroz
2018-04-21Fixed #29295 -- Fixed management command crash when using subparsers.Hasan Ramezani
Thanks Tim Graham for the fix.
2018-03-02Fixed #29133 -- Fixed call_command() crash if a required option is passed in ↵Alex Tomic
options.
2018-01-03Refs #23919 -- Removed obsolete __init__.py files in management command ↵я котик пур-пур
directories.
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-06-16Fixed #27787 -- Made call_command() validate the options it receives.Chandrakant Kumar
2017-05-27Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne
iter(dict) is equivalent to iter(dict.keys()).
2017-04-01Removed implicit default store_true/false argparse args.Jon Dufresne
argparse automatically sets the default value for store_true/false arguments to its opposite.
2017-01-20Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham
2017-01-20Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham
These functions do nothing on Python 3.
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-09Skipped unnecessary system checks in user_commands test.Adam Chainz
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-10-02Fixed #27305 -- Removed BaseCommand.can_import_settings unused attributeClaude Paroz
Thanks Tim Graham for the review.
2016-07-21Made miscellaneous code cleanupsDmitry Dygalo
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-02-23Fixed #26190 -- Returned handle() result from call_commandClaude Paroz
Thanks Tim Graham for the review.
2016-02-15Refs #25304 -- Added assertion for Command.requires_migrations_checks default.Tim Graham
2016-02-12Fixed #25304 -- Allowed management commands to check if migrations are applied.Mounir Messelmeni
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
Thanks to Tim Graham for the review.
2015-10-29Fixed #16734 -- Set script prefix even outside of requestsClaude Paroz
Thanks Tim Graham for the review.
2015-10-03Fixed #25483 -- Allowed passing non-string arguments to call_commandClaude Paroz
Thanks KS Chan for the report and Tim Graham for the review.
2015-09-23Refs #19973 -- Removed optparse support in management commands per ↵Tim Graham
deprecation timeline.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-06-09Fixed #24769 -- Cast optparse verbosity argument to an integer for better ↵Rivo Laks
backwards compatibility. Using `BaseCommand.options_list` makes Django use the legacy optparse parser, which does not set the verbosity attribute correctly. Now the verbosity argument is always cast to int. Regression in 8568638 (#19973). Initial report and patch from blueyed.
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.