This commit is contained in:
zandercymatics 2024-03-26 14:50:00 -06:00
parent a512dcd1b1
commit bd9c6213e8
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -1339,18 +1339,6 @@ class TestDomainRequestAdmin(MockEppLib):
# The dropdown has 4 of these.
self.assertContains(response, "Testy Tester", count=5)
# Check for table titles. We only need to check for the end tag
# (Otherwise this test will fail if we change classes, etc)
# Title. Count=3 because this table appears on three records.
self.assertContains(response, "Title</th>", count=3)
# Email. Count=3 because this table appears on three records.
self.assertContains(response, "Email</th>", count=3)
# Phone. Count=3 because this table appears on three records.
self.assertContains(response, "Phone</th>", count=3)
# == Test the other_employees field == #
expected_other_employees_fields = [
# Field, expected value
@ -1360,9 +1348,6 @@ class TestDomainRequestAdmin(MockEppLib):
]
self.test_helper.assert_response_contains_distinct_values(response, expected_other_employees_fields)
# count=1 as only one should exist in a table
self.assertContains(response, "Testy Tester</th>", count=1)
def test_save_model_sets_restricted_status_on_user(self):
with less_console_noise():
# make sure there is no user with this email
@ -1529,7 +1514,7 @@ class TestDomainRequestAdmin(MockEppLib):
readonly_fields = self.admin.get_readonly_fields(request)
expected_fields = ['other_contacts', 'current_websites']
expected_fields = ["other_contacts", "current_websites"]
self.assertEqual(readonly_fields, expected_fields)