summaryrefslogtreecommitdiff
path: root/tests/modeltests/user_commands
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2013-02-03Fixed #19730 -- Don't validate importability of settings by using i18n in ↵Ramiro Morales
management commands. They are handled independently now and the latter can be influenced by the new BaseCommand.leave_locale_alone internal option. Thanks chrischambers for the report, Claude, lpiatek, neaf and gabooo for their work on a patch, originally on refs. #17379.
2012-08-08[py3] Used compatible imports of StringIO.Aymeric Augustin
2012-05-27Fixed #18387 -- Do not call sys.exit during call_command.Claude Paroz
Moved sys.exit(1) so as failing management commands reach it only when running from command line.
2012-05-19Fixed #18325 -- Wrapped self.stdout/stderr in OutputWrapper classClaude Paroz
2012-03-30Removed with_statement imports, useless in Python >= 2.6. Refs #17965. ↵Claude Paroz
Thanks jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-02-09Fixed #10080 -- Slightly extended the fix made in r10401 by also taking ↵Jannis Leidel
command line options into account that don't have have a default set. Thanks, Claude Paroz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17467 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-09Fixed incompatibility with Python 2.5 introduced in r17077. Thanks Florian ↵Ramiro Morales
for the heads up. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17078 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-07Fixed #11118 -- Made management command BaseCommand restore locale after ↵Ramiro Morales
execution. Thanks rvdrijst for the report and initial patch and Claude Paroz for enhancing it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17077 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13Convert all modeltests to use absolute imports, rather than relative ones.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16975 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-03Updated test assertions that have been deprecated by the move to unittest2. ↵Russell Keith-Magee
In summary, this means: assert_ -> assertTrue assertEquals -> assertEqual failUnless -> assertTrue For full details, see http://www.voidspace.org.uk/python/articles/unittest2.shtml#deprecations git-svn-id: http://code.djangoproject.com/svn/django/trunk@15728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-13Migrated user_commands doctests. Thanks to Eric Florenzano.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13823 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-05Fixed #10080: `call_command` now takes option defaults into account, sparing ↵Jacob Kaplan-Moss
individual commands from any difference between `call_command` and being run from the shell. Thanks, Alex Koshelev. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-12Fixed a couple typos in the modeltests' descriptions and made use of ReST ↵Gary Wilson Jr
inline literal markup for code snippets. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-01Fixed #6068 -- Updated docstrings in model tests to make the documentationMalcolm Tredinnick
examples correct. Thanks Wang Chun. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6813 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-21Fixed #5516 -- Added the ability for applications to define their own ↵Russell Keith-Magee
management commands. Pieces of this patch taken from a contribution by Todd O'Bryan. Thanks Todd. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6400 bcc190cf-cafb-0310-a4f2-bffc1f526a37