resolve merge issues with stray INVESTIGATING statuses

This commit is contained in:
rachidatecs 2023-07-14 15:47:09 -04:00
parent 267f76eb62
commit 0547e88b00
No known key found for this signature in database
GPG key ID: 3CEBBFA7325E5525
2 changed files with 3 additions and 3 deletions

View file

@ -625,7 +625,7 @@ class DomainApplication(TimeStampedModel):
def withdraw(self):
"""Withdraw an application that has been submitted."""
@transition(field="status", source=[INVESTIGATING, APPROVED], target=REJECTED)
@transition(field="status", source=[IN_REVIEW, APPROVED], target=REJECTED)
def reject(self, updated_domain_application):
"""Reject an application that has been submitted.

View file

@ -164,7 +164,7 @@ class TestDomainApplicationAdmin(TestCase):
with boto3_mocking.clients.handler_for("sesv2", mock_client):
# Create a sample application
application = completed_application(status=DomainApplication.INVESTIGATING)
application = completed_application(status=DomainApplication.IN_REVIEW)
# Create a mock request
request = self.factory.post(
@ -210,7 +210,7 @@ class TestDomainApplicationAdmin(TestCase):
with boto3_mocking.clients.handler_for("sesv2", mock_client):
# Create a sample application
application = completed_application(status=DomainApplication.INVESTIGATING)
application = completed_application(status=DomainApplication.IN_REVIEW)
# Create a mock request
request = self.factory.post(