mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Converted remaining management commands to argparse
This commit is contained in:
@@ -24,7 +24,7 @@ class MultiDBChangepasswordManagementCommandTestCase(TestCase):
|
||||
command = changepassword.Command()
|
||||
command._get_pass = lambda *args: 'not qwerty'
|
||||
|
||||
command.execute("joe", database='other', stdout=self.stdout)
|
||||
command.execute(username="joe", database='other', stdout=self.stdout)
|
||||
command_output = self.stdout.getvalue().strip()
|
||||
|
||||
self.assertEqual(command_output, "Changing password for user 'joe'\nPassword changed successfully for user 'joe'")
|
||||
|
||||
Reference in New Issue
Block a user