def test_update_letter_notifications_statuses_builds_updates_list( notify_api, mocker): valid_file = "ref-foo|Sent|1|Unsorted\nref-bar|Sent|2|Sorted" updates = process_updates_from_file(valid_file) assert len(updates) == 2 assert updates[0].reference == "ref-foo" assert updates[0].status == "Sent" assert updates[0].page_count == "1" assert updates[0].cost_threshold == "Unsorted" assert updates[1].reference == "ref-bar" assert updates[1].status == "Sent" assert updates[1].page_count == "2" assert updates[1].cost_threshold == "Sorted"
def test_update_letter_notifications_statuses_builds_updates_list( notify_api, mocker): valid_file = 'ref-foo|Sent|1|Unsorted\nref-bar|Sent|2|Sorted' updates = process_updates_from_file(valid_file) assert len(updates) == 2 assert updates[0].reference == 'ref-foo' assert updates[0].status == 'Sent' assert updates[0].page_count == '1' assert updates[0].cost_threshold == 'Unsorted' assert updates[1].reference == 'ref-bar' assert updates[1].status == 'Sent' assert updates[1].page_count == '2' assert updates[1].cost_threshold == 'Sorted'