mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -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))
|
temp = dict(zip(first_row, row))
|
||||||
personalisation[job_row] = temp
|
personalisation[job_row] = temp
|
||||||
job_row = job_row + 1
|
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)
|
service = SerialisedService.from_id(notification.service_id)
|
||||||
message_id = None
|
message_id = None
|
||||||
|
|||||||
@@ -649,7 +649,8 @@ def test_should_update_billable_units_and_status_according_to_research_mode_and_
|
|||||||
mock_personalisation = mocker.patch(
|
mock_personalisation = mocker.patch(
|
||||||
"app.delivery.send_to_providers.get_personalisation_from_s3"
|
"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)
|
send_to_providers.send_sms_to_provider(notification)
|
||||||
assert notification.billable_units == billable_units
|
assert notification.billable_units == billable_units
|
||||||
|
|||||||
Reference in New Issue
Block a user