-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:e-valuation/evap into live-server-t…
…ests
- Loading branch information
Showing
20 changed files
with
3,236 additions
and
2,311 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,25 @@ | |
from evap.tools import MonthAndDay | ||
|
||
|
||
class TestCreateUserCommand(TestCase): | ||
# Regression test for #2204 - createsuperuser failing due to misconfigured REQUIRED_FIELDS | ||
def test_create_super_user(self): | ||
management.call_command( | ||
"createsuperuser", | ||
"--no-input", | ||
"--first_name_given", | ||
"Tony", | ||
"--last_name", | ||
"Kuchenbuch", | ||
"--email", | ||
"[email protected]", | ||
) | ||
|
||
user = UserProfile.objects.get(email="[email protected]") | ||
self.assertEqual(user.first_name_given, "Tony") | ||
self.assertEqual(user.last_name, "Kuchenbuch") | ||
|
||
|
||
class TestAnonymizeCommand(TestCase): | ||
@classmethod | ||
def setUpTestData(cls): | ||
|
@@ -224,7 +243,7 @@ def test_scss_called_with_no_sass_installed(self, mock_subprocess_run): | |
management.call_command("scss") | ||
|
||
|
||
class TestTsCommend(TestCase): | ||
class TestTsCommand(TestCase): | ||
def setUp(self): | ||
self.ts_path = os.path.join(settings.STATICFILES_DIRS[0], "ts") | ||
|
||
|
Oops, something went wrong.