File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -938,9 +938,9 @@ def test_post_processing(
938938 "imap_sclk_0001.tsc" ,
939939 ]
940940
941+
941942@mock .patch ("imap_processing.cli.filter_day_boundary_data" )
942943@mock .patch ("imap_processing.cli.swe_l1a" )
943-
944944def test_post_processing_upload_503_error (
945945 mock_swe_l1a ,
946946 mock_filter ,
@@ -958,7 +958,7 @@ def test_post_processing_upload_503_error(
958958 ].return_value = "/path/to/imap_swe_l1a_test_20100105_v001.cdf"
959959 mocks ["mock_query" ].return_value = []
960960
961- #Mocks a 503 error received from the upload API
961+ # Mocks a 503 error received from the upload API
962962 mocks ["mock_upload" ].side_effect = imap_data_access .io .IMAPDataAccessError (
963963 '503 Service Unavailable: {"error": "ServiceUnavailable", '
964964 '"message": "The API is too busy."}'
@@ -985,4 +985,7 @@ def test_post_processing_upload_503_error(
985985 instrument .process ()
986986
987987 # Check the upload failure was logged
988- assert any ( "Upload failed with error" in str (call ) for call in mock_error .call_args_list )
988+ assert any (
989+ "Upload failed with error" in str (call )
990+ for call in mock_error .call_args_list
991+ )
You can’t perform that action at this time.
0 commit comments