From 040688c9d7056d5a101e5ba83923cfc8d2c49c24 Mon Sep 17 00:00:00 2001 From: julianajlk Date: Thu, 9 Nov 2023 11:16:33 -0500 Subject: [PATCH] fix: wip --- .../commands/tests/test_download_sdn_fallback.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sanctions/apps/sanctions/management/commands/tests/test_download_sdn_fallback.py b/sanctions/apps/sanctions/management/commands/tests/test_download_sdn_fallback.py index 9b045d8..bf243bc 100644 --- a/sanctions/apps/sanctions/management/commands/tests/test_download_sdn_fallback.py +++ b/sanctions/apps/sanctions/management/commands/tests/test_download_sdn_fallback.py @@ -25,9 +25,13 @@ def __init__(self, **kwargs): # mock response for CSV download: just one row of the CSV self.test_response = TestResponse(**{ - 'content': bytes('_id,source,entity_number,type,programs,name,title,addresses,federal_register_notice,start_date,end_date,standard_order,license_requirement,'\ - 'license_policy,call_sign,vessel_type,gross_tonnage,gross_registered_tonnage,vessel_flag,vessel_owner,remarks,source_list_url,alt_names,citizenships,dates_of_birth,nationalities,places_of_birth,source_information_url,'\ - 'ids\ne5a9eff64cec4a74ed5e9e93c2d851dc2d9132d2,Denied Persons List (DPL) - Bureau of Industry and Security,,,, MICKEY MOUSE,,"123 S. TEST DRIVE, SCOTTSDALE, AZ, 85251",82 F.R. 48792 10/01/2017,2017-10-18,2020-10-15,Y,,,,,,,,,FR NOTICE ADDED,http://bit.ly/1Qi5heF,,,,,,http://bit.ly/1iwxiF0', 'utf-8'), + 'content': bytes( + '_id,source,entity_number,type,programs,name,title,addresses,federal_register_notice,start_date,end_date,standard_order,'\ + 'license_requirement,license_policy,call_sign,vessel_type,gross_tonnage,gross_registered_tonnage,vessel_flag,vessel_owner,remarks,'\ + 'source_list_url,alt_names,citizenships,dates_of_birth,nationalities,places_of_birth,source_information_url,'\ + 'ids\ne5a9eff64cec4a74ed5e9e93c2d851dc2d9132d2,Denied Persons List (DPL) - Bureau of Industry and Security,,,, MICKEY MOUSE,,"123 S. TEST DRIVE, SCOTTSDALE, AZ, 85251",'\ + '82 F.R. 48792 10/01/2017,2017-10-18,2020-10-15,Y,,,,,,,,,FR NOTICE ADDED,http://bit.ly/1Qi5heF,,,,,,http://bit.ly/1iwxiF0', 'utf-8' + ), 'status_code': 200, })