mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-12 08:12:27 -05:00
try fixing tests
This commit is contained in:
@@ -65,7 +65,9 @@ def send_sms_to_provider(notification):
|
||||
temp = dict(zip(first_row, row))
|
||||
personalisation[job_row] = temp
|
||||
job_row = job_row + 1
|
||||
notification.personalisation = personalisation[notification.job_row_number]
|
||||
notification.personalisation = personalisation[notification.job_row_number]
|
||||
else:
|
||||
notification.personalisation = personalisation
|
||||
|
||||
service = SerialisedService.from_id(notification.service_id)
|
||||
message_id = None
|
||||
|
||||
@@ -649,7 +649,8 @@ def test_should_update_billable_units_and_status_according_to_research_mode_and_
|
||||
mock_personalisation = mocker.patch(
|
||||
"app.delivery.send_to_providers.get_personalisation_from_s3"
|
||||
)
|
||||
mock_personalisation.return_value = {}
|
||||
# So we don't treat it as a one off and have to mock other things
|
||||
mock_personalisation.return_value = {"ignore": "ignore"}
|
||||
|
||||
send_to_providers.send_sms_to_provider(notification)
|
||||
assert notification.billable_units == billable_units
|
||||
|
||||
Reference in New Issue
Block a user