Convert investigator id to investigator name in descriptive subheader on admin lists, update unit test, linting

This commit is contained in:
rachidatecs 2023-07-06 13:57:27 -04:00
parent 257db0fae5
commit 10b0700657
No known key found for this signature in database
GPG key ID: 3CEBBFA7325E5525
5 changed files with 81 additions and 21 deletions

View file

@ -65,6 +65,11 @@ class UserFixture:
"first_name": "Rachid-Analyst",
"last_name": "Mrad-Analyst",
},
{
"username": "b6a15987-5c88-4e26-8de2-ca71a0bdb2cd",
"first_name": "Alysia-Analyst",
"last_name": "Alysia-Analyst",
},
]
STAFF_PERMISSIONS = [
@ -99,7 +104,7 @@ class UserFixture:
logger.debug("User object created for %s" % admin["first_name"])
except Exception as e:
logger.warning(e)
logger.debug("All superusers loaded.")
logger.info("All superusers loaded.")
logger.info("Going to load %s CISA analysts (staff)" % str(len(cls.STAFF)))
for staff in cls.STAFF:
@ -150,7 +155,7 @@ class UserFixture:
logger.debug("User object created for %s" % staff["first_name"])
except Exception as e:
logger.warning(e)
logger.debug("All CISA analysts (staff) loaded.")
logger.info("All CISA analysts (staff) loaded.")
class DomainApplicationFixture: