From 4115288b4f7bbd694946a1ddef0f0ba85c03f9a1 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Wed, 2 Mar 2016 17:12:56 -0800 Subject: Fixed #26315 -- Allowed call_command() to accept a Command object as the first argument. --- tests/auth_tests/test_management.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/auth_tests') 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, -- cgit v1.3