From 6d5492630d22c839142a38846aa8b7e2340427cb Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Sun, 5 Apr 2009 19:00:27 +0000 Subject: [PATCH] Fixed a sloppy test auth test. [10400] revealed that the auth test was relying on the weird difference between calling a management from the shell and from `call_command`. That this worked in the first case was pretty much an accident. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10404 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/auth/tests/basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/auth/tests/basic.py b/django/contrib/auth/tests/basic.py index 0b49a45728..f403613475 100644 --- a/django/contrib/auth/tests/basic.py +++ b/django/contrib/auth/tests/basic.py @@ -58,7 +58,7 @@ True # >>> from django.core.management import call_command ->>> call_command("createsuperuser", noinput=True, username="joe", email="joe@somewhere.org") +>>> call_command("createsuperuser", interactive=False, username="joe", email="joe@somewhere.org") Superuser created successfully. >>> u = User.objects.get(username="joe")