mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 12:08:40 +02:00
Linting, fix test
This commit is contained in:
parent
227083462d
commit
133c435f03
2 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
"""This file contains general purpose helpers that don't belong in any specific location"""
|
"""This file contains general purpose helpers that don't belong in any specific location"""
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
|
@ -985,7 +985,13 @@ class TestDomainApplicationAdmin(MockEppLib):
|
||||||
self.client.login(username="staffuser", password=p)
|
self.client.login(username="staffuser", password=p)
|
||||||
request = RequestFactory().get("/")
|
request = RequestFactory().get("/")
|
||||||
|
|
||||||
expected_list = list(User.objects.filter(is_staff=True).order_by("first_name", "last_name", "email"))
|
# These names have metadata embedded in them. :investigator implicitly tests if
|
||||||
|
# these are actually from the attribute "investigator".
|
||||||
|
expected_list = [
|
||||||
|
"AGuy AGuy last_name:investigator",
|
||||||
|
"FinalGuy FinalGuy last_name:investigator",
|
||||||
|
"SomeGuy first_name:investigator SomeGuy last_name:investigator",
|
||||||
|
]
|
||||||
|
|
||||||
# Get the actual sorted list of investigators from the lookups method
|
# Get the actual sorted list of investigators from the lookups method
|
||||||
actual_list = [item for _, item in self.admin.InvestigatorFilter.lookups(self, request, self.admin)]
|
actual_list = [item for _, item in self.admin.InvestigatorFilter.lookups(self, request, self.admin)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue