forked from cds-snc/notification-api
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#190] add notification_id param to contact_information_tasks and do …
…not cast it to a string
- Loading branch information
1 parent
e461040
commit bd03a59
Showing
3 changed files
with
8 additions
and
5 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
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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import uuid | ||
|
||
from app.celery.contact_information_tasks import lookup_contact_info, lookup_va_profile_id | ||
|
||
|
||
def test_should_log_message_for_contact_information_tasks(client, mocker): | ||
mock_logger = mocker.patch('app.celery.contact_information_tasks.current_app.logger.info') | ||
notification_id = uuid.uuid4() | ||
|
||
lookup_contact_info() | ||
lookup_contact_info(notification_id) | ||
mock_logger.assert_called_with('This task will look up contact information.') | ||
|
||
lookup_va_profile_id() | ||
lookup_va_profile_id(notification_id) | ||
mock_logger.assert_called_with('This task will look up VA Profile ID.') |