summaryrefslogtreecommitdiff
path: root/tests/user_commands
AgeCommit message (Collapse)Author
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.
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-09-24Removed numbering from the models.py header of some test packages.Loic Bistuer
This is a reliqua from the early days of the modeltests/regressiontests era.
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 several flake8 errorsAlex Gaynor
2014-06-14Converted remaining management commands to argparseClaude Paroz
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.
2014-01-20Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee
This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
2013-11-02Fixing E302 ErrorsJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
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