tweak tests

This commit is contained in:
Rachid Mrad 2023-09-29 15:43:49 -04:00
parent 2840ebc63d
commit 3eb6c56f3e
No known key found for this signature in database
GPG key ID: EF38E4CEC4A8F3CF
2 changed files with 9 additions and 6 deletions

View file

@ -135,11 +135,14 @@ class MyUserAdmin(BaseUserAdmin):
"email",
"first_name",
"last_name",
"is_staff",
"is_superuser",
"first_group",
"status",
)
# First group (which should by theory be the only group)
def first_group(self, obj):
return f"{obj.groups.first()}"
fieldsets = (
(
None,
@ -175,8 +178,7 @@ class MyUserAdmin(BaseUserAdmin):
{
"fields": (
"is_active",
"is_staff",
"is_superuser",
"groups",
)
},
),
@ -195,6 +197,7 @@ class MyUserAdmin(BaseUserAdmin):
"is_active",
"is_staff",
"is_superuser",
"groups",
"Important dates",
"last_login",
"date_joined",

View file

@ -51,6 +51,7 @@ class TestDomainAdmin(MockEppLib):
self.staffuser = create_user()
super().setUp()
@skip("EPP sabotage")
def test_place_and_remove_hold(self):
domain = create_ready_domain()
# get admin page and assert Place Hold button
@ -704,7 +705,6 @@ class ListHeaderAdminTest(TestCase):
self.client = Client(HTTP_HOST="localhost:8080")
self.superuser = create_superuser()
@skip("This no longer works with the RBAC revision")
def test_changelist_view(self):
# Have to get creative to get past linter
p = "adminpass"