-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -231,6 +231,7 @@ def test_industry_user_update_operation_with_submit(self): | |
assert response.status_code == 200 | ||
assert response.json() == {"name": "New name"} | ||
|
||
operation.refresh_from_db() | ||
self.mock_send_boro_id_application_email.assert_called_once_with( | ||
application_state=BoroIdApplicationStates.CONFIRMATION, | ||
operator_legal_name=operation.operator.legal_name, | ||
|
@@ -310,6 +311,7 @@ def test_industry_user_update_operation_with_updated_point_of_contact(self): | |
assert updated_contact2.first_name == 'Homer' | ||
assert updated_contact2.email == '[email protected]' | ||
|
||
operation.refresh_from_db() | ||
self.mock_send_boro_id_application_email.assert_called_once_with( | ||
application_state=BoroIdApplicationStates.CONFIRMATION, | ||
operator_legal_name=operation.operator.legal_name, | ||
|
@@ -525,6 +527,7 @@ def test_industry_user_update_operation_with_changes_requested_status(self): | |
assert retrieved_operation.submission_date - datetime.now(timezone.utc) < timedelta(seconds=10) | ||
assert retrieved_operation.status == Operation.Statuses.PENDING | ||
|
||
operation.refresh_from_db() | ||
self.mock_send_boro_id_application_email.assert_called_once_with( | ||
application_state=BoroIdApplicationStates.CONFIRMATION, | ||
operator_legal_name=retrieved_operation.operator.legal_name, | ||
|
@@ -573,6 +576,7 @@ def test_industry_user_update_operation_with_pending_status(self): | |
assert retrieved_operation.submission_date - datetime.now(timezone.utc) < timedelta(seconds=10) | ||
assert retrieved_operation.status == Operation.Statuses.PENDING | ||
|
||
operation.refresh_from_db() | ||
self.mock_send_boro_id_application_email.assert_called_once_with( | ||
application_state=BoroIdApplicationStates.CONFIRMATION, | ||
operator_legal_name=retrieved_operation.operator.legal_name, | ||
|
@@ -621,6 +625,8 @@ def test_industry_user_update_operation_with_declined_status(self): | |
# assert that operation's submission_date has been updated to the current time (approximately) | ||
assert retrieved_operation.submission_date - datetime.now(timezone.utc) < timedelta(seconds=10) | ||
assert retrieved_operation.status == Operation.Statuses.PENDING | ||
|
||
operation.refresh_from_db() | ||
self.mock_send_boro_id_application_email.assert_called_once_with( | ||
application_state=BoroIdApplicationStates.CONFIRMATION, | ||
operator_legal_name=retrieved_operation.operator.legal_name, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters