mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 17:17:02 +02:00
Linting
This commit is contained in:
parent
a512dcd1b1
commit
bd9c6213e8
1 changed files with 1 additions and 16 deletions
|
@ -1339,18 +1339,6 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
# The dropdown has 4 of these.
|
# The dropdown has 4 of these.
|
||||||
self.assertContains(response, "Testy Tester", count=5)
|
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 == #
|
# == Test the other_employees field == #
|
||||||
expected_other_employees_fields = [
|
expected_other_employees_fields = [
|
||||||
# Field, expected value
|
# Field, expected value
|
||||||
|
@ -1360,9 +1348,6 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
]
|
]
|
||||||
self.test_helper.assert_response_contains_distinct_values(response, expected_other_employees_fields)
|
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):
|
def test_save_model_sets_restricted_status_on_user(self):
|
||||||
with less_console_noise():
|
with less_console_noise():
|
||||||
# make sure there is no user with this email
|
# make sure there is no user with this email
|
||||||
|
@ -1529,7 +1514,7 @@ class TestDomainRequestAdmin(MockEppLib):
|
||||||
|
|
||||||
readonly_fields = self.admin.get_readonly_fields(request)
|
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)
|
self.assertEqual(readonly_fields, expected_fields)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue