Allow unknown state in data migration

This commit is contained in:
Neil Martinsen-Burrell 2023-12-01 11:24:45 -06:00
parent 01b1e3e520
commit 45f8e26018
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
5 changed files with 14 additions and 14 deletions

View file

@ -193,6 +193,17 @@ class TestOrganizationMigration(TestCase):
self.assertEqual(transition, expected_transition_domain)
def test_transition_domain_status_unknown(self):
"""
Test that a domain in unknown status can be loaded
""" # noqa - E501 (harder to read)
# == First, parse all existing data == #
self.run_load_domains()
self.run_transfer_domains()
domain_object = Domain.objects.get(name="fakewebsite3.gov")
self.assertEqual(domain_object.state, Domain.State.UNKNOWN)
def test_load_organization_data_domain_information(self):
"""
This test verifies the functionality of the load_organization_data method.