mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-03 09:43:33 +02:00
Fix test + lint
This commit is contained in:
parent
68e44eb98e
commit
2a7eb6db81
3 changed files with 7 additions and 6 deletions
|
@ -6,7 +6,7 @@ from registrar.models import (
|
||||||
User,
|
User,
|
||||||
UserGroup,
|
UserGroup,
|
||||||
)
|
)
|
||||||
from registrar.models.verified_by_staff import VerifiedByStaff
|
|
||||||
|
|
||||||
fake = Faker()
|
fake = Faker()
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
|
@ -29,6 +29,7 @@ class User(AbstractUser):
|
||||||
Users achieve access to our system in a few different ways.
|
Users achieve access to our system in a few different ways.
|
||||||
These choices reflect those pathways.
|
These choices reflect those pathways.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
GRANDFATHERED = "grandfathered", "Legacy user"
|
GRANDFATHERED = "grandfathered", "Legacy user"
|
||||||
VERIFIED_BY_STAFF = "verified_by_staff", "Verified by staff"
|
VERIFIED_BY_STAFF = "verified_by_staff", "Verified by staff"
|
||||||
REGULAR = "regular", "Verified by Login.gov"
|
REGULAR = "regular", "Verified by Login.gov"
|
||||||
|
|
|
@ -2820,7 +2820,7 @@ class MyUserAdminTest(TestCase):
|
||||||
request.user = create_user()
|
request.user = create_user()
|
||||||
fieldsets = self.admin.get_fieldsets(request)
|
fieldsets = self.admin.get_fieldsets(request)
|
||||||
expected_fieldsets = (
|
expected_fieldsets = (
|
||||||
(None, {"fields": ("password", "status")}),
|
(None, {"fields": ("password", "status", "verification_type")}),
|
||||||
("Personal Info", {"fields": ("first_name", "last_name", "email")}),
|
("Personal Info", {"fields": ("first_name", "last_name", "email")}),
|
||||||
("Permissions", {"fields": ("is_active", "groups")}),
|
("Permissions", {"fields": ("is_active", "groups")}),
|
||||||
("Important dates", {"fields": ("last_login", "date_joined")}),
|
("Important dates", {"fields": ("last_login", "date_joined")}),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue