try fixing tests

This commit is contained in:
Kenneth Kehl
2024-10-01 11:36:09 -07:00
parent c2ed8f1686
commit f55c437c7d
2 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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