mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
Add unit test
This commit is contained in:
parent
e30650abee
commit
af20a9b52a
2 changed files with 23 additions and 1 deletions
|
@ -9,6 +9,7 @@ from django.db import models
|
|||
from django_fsm import FSMField, transition # type: ignore
|
||||
from django.utils import timezone
|
||||
from registrar.models.domain import Domain
|
||||
from registrar.models.federal_agency import FederalAgency
|
||||
from registrar.models.utility.generic_helper import CreateOrUpdateOrganizationTypeHelper
|
||||
from registrar.utility.errors import FSMDomainRequestError, FSMErrorCodes
|
||||
|
||||
|
@ -752,7 +753,7 @@ class DomainRequest(TimeStampedModel):
|
|||
notification."""
|
||||
|
||||
if self.federal_agency is None:
|
||||
self.federal_agency = "Non-Federal Agency"
|
||||
self.federal_agency = FederalAgency.objects.filter(agency="Non-Federal Agency").first()
|
||||
self.save()
|
||||
|
||||
# create the domain
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue