-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better support for django-admin options verbosity
- Loading branch information
1 parent
60da4a3
commit 981d045
Showing
2 changed files
with
18 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from __future__ import annotations | ||
|
||
from django.contrib.auth import get_user_model | ||
from django.core.management import call_command | ||
|
||
|
||
def test_create_debug_users(): | ||
call_command("create_debug_users", noinput=True, verbosity=0) | ||
assert get_user_model().objects.filter(username="admin", is_superuser=True) | ||
assert get_user_model().objects.filter(username="student", is_student=True) | ||
assert get_user_model().objects.filter(username="teacher", is_teacher=True) |