mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-15 17:52:26 -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)
|
||||
else:
|
||||
current_app.logger.warning(
|
||||
"notification not found for reference: {} (while \
|
||||
attempting update to {})".format(reference, notification_status)
|
||||
f"notification not found for reference: {reference} \
|
||||
(while attempting update to {notification_status})"
|
||||
)
|
||||
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'):
|
||||
assert process_ses_results(ses_notification_callback(reference='ref')) is None
|
||||
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(
|
||||
'notification not found for reference: ref (while \
|
||||
attempting update to delivered)'
|
||||
'notification not found for reference: ref \
|
||||
(while attempting update to delivered)'
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user