forked from django/django
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
371 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,7 +130,8 @@ def test_createsuperuser_management_command(self): | |
"Check the operation of the createsuperuser management command" | ||
# We can use the management command to create a superuser | ||
new_io = StringIO() | ||
call_command("createsuperuser", | ||
call_command( | ||
"createsuperuser", | ||
interactive=False, | ||
username="joe", | ||
email="[email protected]", | ||
|
@@ -146,7 +147,8 @@ def test_createsuperuser_management_command(self): | |
|
||
# We can supress output on the management command | ||
new_io = StringIO() | ||
call_command("createsuperuser", | ||
call_command( | ||
"createsuperuser", | ||
interactive=False, | ||
username="joe2", | ||
email="[email protected]", | ||
|
@@ -159,7 +161,8 @@ def test_createsuperuser_management_command(self): | |
self.assertEqual(u.email, '[email protected]') | ||
self.assertFalse(u.has_usable_password()) | ||
|
||
call_command("createsuperuser", | ||
call_command( | ||
"createsuperuser", | ||
interactive=False, | ||
username="[email protected]", | ||
email="[email protected]", | ||
|
@@ -182,7 +185,8 @@ def test_createsuperuser_nolocale(self): | |
locale.getdefaultlocale = lambda: (None, None) | ||
|
||
# Call the command in this new environment | ||
call_command("createsuperuser", | ||
call_command( | ||
"createsuperuser", | ||
interactive=True, | ||
username="[email protected]", | ||
email="[email protected]", | ||
|
@@ -212,7 +216,8 @@ def test_createsuperuser_non_ascii_verbose_name(self): | |
username_field.verbose_name = ulazy('uživatel') | ||
new_io = StringIO() | ||
try: | ||
call_command("createsuperuser", | ||
call_command( | ||
"createsuperuser", | ||
interactive=True, | ||
stdout=new_io | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,7 +91,8 @@ def test_createsuperuser(self): | |
"Check the operation of the createsuperuser management command" | ||
# We can use the management command to create a superuser | ||
new_io = StringIO() | ||
call_command("createsuperuser", | ||
call_command( | ||
"createsuperuser", | ||
interactive=False, | ||
username="joe", | ||
email="[email protected]", | ||
|
@@ -108,7 +109,8 @@ def test_createsuperuser(self): | |
def test_verbosity_zero(self): | ||
# We can supress output on the management command | ||
new_io = StringIO() | ||
call_command("createsuperuser", | ||
call_command( | ||
"createsuperuser", | ||
interactive=False, | ||
username="joe2", | ||
email="[email protected]", | ||
|
@@ -123,7 +125,8 @@ def test_verbosity_zero(self): | |
|
||
def test_email_in_username(self): | ||
new_io = StringIO() | ||
call_command("createsuperuser", | ||
call_command( | ||
"createsuperuser", | ||
interactive=False, | ||
username="[email protected]", | ||
email="[email protected]", | ||
|
@@ -140,7 +143,8 @@ def test_swappable_user(self): | |
# We skip validation because the temporary substitution of the | ||
# swappable User model messes with validation. | ||
new_io = StringIO() | ||
call_command("createsuperuser", | ||
call_command( | ||
"createsuperuser", | ||
interactive=False, | ||
email="[email protected]", | ||
date_of_birth="1976-04-01", | ||
|
@@ -163,7 +167,8 @@ def test_swappable_user_missing_required_field(self): | |
# swappable User model messes with validation. | ||
new_io = StringIO() | ||
with self.assertRaises(CommandError): | ||
call_command("createsuperuser", | ||
call_command( | ||
"createsuperuser", | ||
interactive=False, | ||
username="[email protected]", | ||
stdout=new_io, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.