mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
pass pytest multiline preferences
This commit is contained in:
@@ -60,8 +60,8 @@ def process_ses_results(self, response):
|
|||||||
self.retry(queue=QueueNames.RETRY)
|
self.retry(queue=QueueNames.RETRY)
|
||||||
else:
|
else:
|
||||||
current_app.logger.warning(
|
current_app.logger.warning(
|
||||||
"notification not found for reference: {} (while \
|
f"notification not found for reference: {reference} \
|
||||||
attempting update to {})".format(reference, notification_status)
|
(while attempting update to {notification_status})"
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -197,9 +197,11 @@ def test_ses_callback_should_log_if_notification_is_missing(client, _notify_db,
|
|||||||
with freeze_time('2017-11-17T12:34:03.646Z'):
|
with freeze_time('2017-11-17T12:34:03.646Z'):
|
||||||
assert process_ses_results(ses_notification_callback(reference='ref')) is None
|
assert process_ses_results(ses_notification_callback(reference='ref')) is None
|
||||||
assert mock_retry.call_count == 0
|
assert mock_retry.call_count == 0
|
||||||
|
# the multiline indent must be the same as in the application code
|
||||||
|
# for the assertion to completely match
|
||||||
mock_logger.assert_called_once_with(
|
mock_logger.assert_called_once_with(
|
||||||
'notification not found for reference: ref (while \
|
'notification not found for reference: ref \
|
||||||
attempting update to delivered)'
|
(while attempting update to delivered)'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user