Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

fix: Update SDN CSL URL used for fallback #4053

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def add_arguments(self, parser):
def handle(self, *args, **options):
# download the csv locally, to check size and pass along to import
threshold = options['threshold']
url = 'http://api.trade.gov/static/consolidated_screening_list/consolidated.csv'
url = 'https://data.trade.gov/downloadable_consolidated_screening_list/v1/consolidated.csv'
timeout = settings.SDN_CHECK_REQUEST_TIMEOUT

with requests.Session() as s:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_handle_500_response(self, mock_response):

class TestDownloadSndFallbackCommandExceptions(TestCase):
LOGGER_NAME = 'ecommerce.core.management.commands.populate_sdn_fallback_data_and_metadata'
URL = 'http://api.trade.gov/static/consolidated_screening_list/consolidated.csv'
URL = 'https://data.trade.gov/downloadable_consolidated_screening_list/v1/consolidated.csv'
ERROR_MESSAGE = 'some foo error'

@responses.activate
Expand Down
Loading