summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_management.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2016-03-02 17:12:56 -0800
committerTim Graham <timograham@gmail.com>2016-03-05 13:05:10 -0500
commit4115288b4f7bbd694946a1ddef0f0ba85c03f9a1 (patch)
tree829552eea236ba5cf7cccdb873e014bfff6a6036 /tests/auth_tests/test_management.py
parent8d3fcfa39e8aab5618d9b7f6a592006e9af8cefc (diff)
Fixed #26315 -- Allowed call_command() to accept a Command object as the first argument.
Diffstat (limited to 'tests/auth_tests/test_management.py')
-rw-r--r--tests/auth_tests/test_management.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auth_tests/test_management.py b/tests/auth_tests/test_management.py
index 84a414a435..fe3963e221 100644
--- a/tests/auth_tests/test_management.py
+++ b/tests/auth_tests/test_management.py
@@ -342,8 +342,8 @@ class CreatesuperuserManagementCommandTestCase(TestCase):
"""
sentinel = object()
command = createsuperuser.Command()
- command.check = lambda: []
- command.execute(
+ call_command(
+ command,
stdin=sentinel,
stdout=six.StringIO(),
stderr=six.StringIO(),
@@ -355,8 +355,8 @@ class CreatesuperuserManagementCommandTestCase(TestCase):
self.assertIs(command.stdin, sentinel)
command = createsuperuser.Command()
- command.check = lambda: []
- command.execute(
+ call_command(
+ command,
stdout=six.StringIO(),
stderr=six.StringIO(),
interactive=False,