summaryrefslogtreecommitdiff
path: root/tests/user_commands/tests.py
AgeCommit message (Collapse)Author
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-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.
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-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-07-21Made miscellaneous code cleanupsDmitry Dygalo
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
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-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-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
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-08Fixed #24073 -- Returned None for get_language when translations are deactivatedClaude Paroz
This fixes a regression caused by f7c287fca9. Thanks Markus Holtermann for identifying the regression.
2015-01-07Fixed #24073 -- Deactivated translations when leave_locale_alone is FalseClaude Paroz
Thanks Tim Graham and Markus Holtermann for the reviews.
2015-01-05Fixed #8280 -- Allowed management command discovery for eggsClaude Paroz
Thanks jdetaeye for the report, bhuztez and jdetaeye for the initial patches, Tim Graham and Berker Peksag for the reviews.
2014-12-30Applied ignore_warnings to Django testsClaude Paroz
2014-11-29Fixed #23930 -- Added copies of captured_std* managers from CPython's ↵wrwrwr
test.support. StringIO import was adapted for compatibility with Python 2.
2014-10-20Fixed #23685 -- Made call_command skip checks by defaultClaude Paroz
Thanks Loic Bistuer for the report/review and Tim Graham for the review.
2014-08-19Fixed broken tests on Oracle after 5853c87a458f62ebd62d7809168355610de2570c.Baptiste Mispelon
Oracle doesn't have a `BEGIN` statement so the test would fail. Refs #23303
2014-08-18Removed test, duplicate of admin_scripts.CommandTypes testsClaude Paroz
2014-08-18Fixed #23303 -- Added BEGIN and COMMIT statements to the output of sqlmigrate.Baptiste Mispelon
2014-08-18Fixed #23309 -- Fixed call_command to parse args correctlyRaffaele Salmaso
2014-08-12Fixed #22985 -- Made call_command accept option name parameterClaude Paroz
Thanks giulettamasina for the report and Tim Graham for the review.
2014-07-24Silenced OptionParser deprecation warning in a test.Tim Graham
2014-06-14Fixed #19973 -- Replaced optparse by argparse in management commandsClaude Paroz
Thanks Tim Graham for the review.
2014-03-22Fixed #22256 -- Replaced bad fallback for missing PATHPatrick Michaud
Thanks Baptiste Mispelon for the review.
2014-02-18flake8 fixes (unused imports and variables).Tim Graham
2014-02-18Removed BaseCommand.stdin introduced in ↵Baptiste Mispelon
116d39842dab2569013856e9f3701a7cb6554f09. This option is not actually very useful in the general case because it doesn't override sys.stdin. It's still marginally useful for testing some features of the createsuperuser command so it was moved there. This commit also makes the detection of a TTY in createsuperuser a bit more robust, after a suggestion of appolo13.
2014-02-17Added the possibility to pass a stdin object to a management command.Baptiste Mispelon
This makes testing certain features easier. Thanks to AeroNotix for the original patch.
2013-03-10Made (make|compile)messages check for availability of gettext commands.Ramiro Morales
Refs #19584.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner