mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
Add random choice for Federal agency fixtures instead of blank
This commit is contained in:
parent
15290b3c1a
commit
381b348f0c
1 changed files with 6 additions and 1 deletions
|
@ -135,7 +135,12 @@ class DomainApplicationFixture:
|
|||
da.organization_type = (
|
||||
app["organization_type"] if "organization_type" in app else "federal"
|
||||
)
|
||||
da.federal_agency = app["federal_agency"] if "federal_agency" in app else ""
|
||||
da.federal_agency = (
|
||||
app["federal_agency"]
|
||||
if "federal_agency" in app
|
||||
else random.choice(DomainApplication.AGENCIES)
|
||||
)
|
||||
|
||||
da.federal_type = (
|
||||
app["federal_type"]
|
||||
if "federal_type" in app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue