@@ -77,7 +77,9 @@ def test_batch_submit_job_sends_expected_request(
7777
7878 # Assert
7979 call = mocked_post .call_args .kwargs
80- assert call ["url" ] == f"{ historical_client .gateway } /v{ db .API_VERSION } /batch.submit_job"
80+ assert (
81+ call ["url" ] == f"{ historical_client .gateway } /v{ db .API_VERSION } /batch.submit_job"
82+ )
8183 assert sorted (call ["headers" ].keys ()) == ["accept" , "user-agent" ]
8284 assert call ["headers" ]["accept" ] == "application/json"
8385 assert all (v in call ["headers" ]["user-agent" ] for v in ("Databento/" , "Python/" ))
@@ -91,6 +93,7 @@ def test_batch_submit_job_sends_expected_request(
9193 "stype_out" : "instrument_id" ,
9294 "encoding" : "csv" ,
9395 "compression" : "zstd" ,
96+ "map_symbols" : False ,
9497 "split_duration" : "day" ,
9598 "packaging" : "none" ,
9699 "delivery" : "download" ,
@@ -112,7 +115,9 @@ def test_batch_list_jobs_sends_expected_request(
112115
113116 # Assert
114117 call = mocked_get .call_args .kwargs
115- assert call ["url" ] == f"{ historical_client .gateway } /v{ db .API_VERSION } /batch.list_jobs"
118+ assert (
119+ call ["url" ] == f"{ historical_client .gateway } /v{ db .API_VERSION } /batch.list_jobs"
120+ )
116121 assert sorted (call ["headers" ].keys ()) == ["accept" , "user-agent" ]
117122 assert call ["headers" ]["accept" ] == "application/json"
118123 assert all (v in call ["headers" ]["user-agent" ] for v in ("Databento/" , "Python/" ))
@@ -137,7 +142,9 @@ def test_batch_list_files_sends_expected_request(
137142
138143 # Assert
139144 call = mocked_get .call_args .kwargs
140- assert call ["url" ] == f"{ historical_client .gateway } /v{ db .API_VERSION } /batch.list_files"
145+ assert (
146+ call ["url" ] == f"{ historical_client .gateway } /v{ db .API_VERSION } /batch.list_files"
147+ )
141148 assert sorted (call ["headers" ].keys ()) == ["accept" , "user-agent" ]
142149 assert call ["headers" ]["accept" ] == "application/json"
143150 assert all (v in call ["headers" ]["user-agent" ] for v in ("Databento/" , "Python/" ))
@@ -168,7 +175,9 @@ def test_batch_download_single_file_sends_expected_request(
168175
169176 # Assert
170177 call = mocked_get .call_args .kwargs
171- assert call ["url" ] == f"{ historical_client .gateway } /v{ db .API_VERSION } /batch.list_files"
178+ assert (
179+ call ["url" ] == f"{ historical_client .gateway } /v{ db .API_VERSION } /batch.list_files"
180+ )
172181 assert sorted (call ["headers" ].keys ()) == ["accept" , "user-agent" ]
173182 assert call ["headers" ]["accept" ] == "application/json"
174183 assert all (v in call ["headers" ]["user-agent" ] for v in ("Databento/" , "Python/" ))
0 commit comments