Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alphagov/notifications-api
/ load_example_csv
Function
load_example_csv
tests/app/__init__.py:4–7 ·
view source on GitHub ↗
(file)
Source
from the content-addressed store, hash-verified
2
3
4
def
load_example_csv(file):
5
file_path = os.path.join(
"test_csv_files"
, f
"{file}.csv"
)
6
with
open(file_path)
as
f:
7
return
f.read()
Callers
15
test_check_for_missing_rows_in_completed_jobs_ignores_old_and_new_jobs
Function · 0.90
test_check_for_missing_rows_in_completed_jobs
Function · 0.90
test_check_for_missing_rows_in_completed_jobs_uses_sender_id
Function · 0.90
test_should_process_sms_job
Function · 0.90
test_should_process_sms_job_passes_none_message_group_id_when_not_set_by_broker
Function · 0.90
test_should_process_sms_job_with_sender_id
Function · 0.90
test_should_not_process_if_send_limit_is_exceeded
Function · 0.90
test_should_not_process_if_send_limit_is_exceeded_by_job_notification_count
Function · 0.90
test_should_process_job_if_send_limits_are_not_exceeded
Function · 0.90
test_should_not_create_shatter_task_for_empty_file
Function · 0.90
test_should_process_all_sms_job
Function · 0.90
test_should_raise_exception_if_job_row_too_big
Function · 0.90
Calls
no outgoing calls
Tested by
15
test_check_for_missing_rows_in_completed_jobs_ignores_old_and_new_jobs
Function · 0.72
test_check_for_missing_rows_in_completed_jobs
Function · 0.72
test_check_for_missing_rows_in_completed_jobs_uses_sender_id
Function · 0.72
test_should_process_sms_job
Function · 0.72
test_should_process_sms_job_passes_none_message_group_id_when_not_set_by_broker
Function · 0.72
test_should_process_sms_job_with_sender_id
Function · 0.72
test_should_not_process_if_send_limit_is_exceeded
Function · 0.72
test_should_not_process_if_send_limit_is_exceeded_by_job_notification_count
Function · 0.72
test_should_process_job_if_send_limits_are_not_exceeded
Function · 0.72
test_should_not_create_shatter_task_for_empty_file
Function · 0.72
test_should_process_all_sms_job
Function · 0.72
test_should_raise_exception_if_job_row_too_big
Function · 0.72