@@ -1907,7 +1907,16 @@ def test_insert_encoding(tmpdir):
19071907 # Using --encoding=latin-1 should work
19081908 good_result = CliRunner ().invoke (
19091909 cli .cli ,
1910- ["insert" , db_path , "places" , csv_path , "--encoding" , "latin-1" , "--csv" , "--no-detect-types" ],
1910+ [
1911+ "insert" ,
1912+ db_path ,
1913+ "places" ,
1914+ csv_path ,
1915+ "--encoding" ,
1916+ "latin-1" ,
1917+ "--csv" ,
1918+ "--no-detect-types" ,
1919+ ],
19111920 catch_exceptions = False ,
19121921 )
19131922 assert good_result .exit_code == 0
@@ -2196,7 +2205,7 @@ def test_import_no_headers(tmpdir, args, tsv):
21962205 csv_file .write ("Tracy{sep}Spider{sep}7\n " .format (sep = sep ))
21972206 result = CliRunner ().invoke (
21982207 cli .cli ,
2199- ["insert" , db_path , "creatures" , csv_path ] + args ,
2208+ ["insert" , db_path , "creatures" , csv_path ] + args + [ "--no-detect-types" ] ,
22002209 catch_exceptions = False ,
22012210 )
22022211 assert result .exit_code == 0 , result .output
@@ -2245,7 +2254,16 @@ def test_csv_insert_bom(tmpdir):
22452254 fp .write (b"\xef \xbb \xbf name,age\n Cleo,5" )
22462255 result = CliRunner ().invoke (
22472256 cli .cli ,
2248- ["insert" , db_path , "broken" , bom_csv_path , "--encoding" , "utf-8" , "--csv" , "--no-detect-types" ],
2257+ [
2258+ "insert" ,
2259+ db_path ,
2260+ "broken" ,
2261+ bom_csv_path ,
2262+ "--encoding" ,
2263+ "utf-8" ,
2264+ "--csv" ,
2265+ "--no-detect-types" ,
2266+ ],
22492267 catch_exceptions = False ,
22502268 )
22512269 assert result .exit_code == 0
@@ -2362,7 +2380,16 @@ def test_upsert_no_detect_types(tmpdir):
23622380 data = "id,name,age,weight\n 1,Cleo,6,45.5\n 2,Dori,1,3.5"
23632381 result = CliRunner ().invoke (
23642382 cli .cli ,
2365- ["upsert" , db_path , "creatures" , "-" , "--csv" , "--pk" , "id" , "--no-detect-types" ],
2383+ [
2384+ "upsert" ,
2385+ db_path ,
2386+ "creatures" ,
2387+ "-" ,
2388+ "--csv" ,
2389+ "--pk" ,
2390+ "id" ,
2391+ "--no-detect-types" ,
2392+ ],
23662393 catch_exceptions = False ,
23672394 input = data ,
23682395 )
0 commit comments