@@ -220,9 +220,16 @@ def test_csv_upload(self):
220
220
csv_metadata = self ._upload_and_get_details (fh , file_type = "csv" )
221
221
assert csv_metadata ["file_ext" ] == "csv"
222
222
223
- @skip_without_datatype ("csv " )
223
+ @skip_without_datatype ("geocsv " )
224
224
def test_csv_upload_auto (self ):
225
225
csv_path = TestDataResolver ().get_filename ("1.csv" )
226
+ with open (csv_path , "rb" ) as fh :
227
+ csv_metadata = self ._upload_and_get_details (fh , file_type = "auto" )
228
+ assert csv_metadata ["file_ext" ] == "geocsv"
229
+
230
+ @skip_without_datatype ("csv" )
231
+ def test_csv_upload_auto (self ):
232
+ csv_path = TestDataResolver ().get_filename ("2.csv" )
226
233
with open (csv_path , "rb" ) as fh :
227
234
csv_metadata = self ._upload_and_get_details (fh , file_type = "auto" )
228
235
assert csv_metadata ["file_ext" ] == "csv"
@@ -236,7 +243,7 @@ def test_csv_fetch(self):
236
243
237
244
@skip_without_datatype ("csv" )
238
245
def test_csv_sniff_fetch (self ):
239
- csv_path = TestDataResolver ().get_filename ("1 .csv" )
246
+ csv_path = TestDataResolver ().get_filename ("2 .csv" )
240
247
with open (csv_path , "rb" ) as fh :
241
248
csv_metadata = self ._upload_and_get_details (fh , api = "fetch" , ext = "auto" , to_posix_lines = True )
242
249
assert csv_metadata ["file_ext" ] == "csv"
0 commit comments