diff options
Diffstat (limited to 'tests/auth_tests')
| -rw-r--r-- | tests/auth_tests/test_management.py | 8 |
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, |
