@@ -99,7 +99,7 @@ def test_connection_get_objects_filters(duck_conn):
9999
100100
101101def test_commit (tmp_path ):
102- db = os .path .join (tmp_path , "tmp.db" )
102+ db = os .path .join (tmp_path , "tmp.db" ) # noqa: PTH118
103103 if os .path .exists (db ):
104104 os .remove (db )
105105 table = example_table ()
@@ -239,7 +239,7 @@ def test_insertion(duck_conn):
239239
240240def test_read (duck_conn ):
241241 with duck_conn .cursor () as cursor :
242- filename = os .path .join (os .path .dirname (os .path .realpath (__file__ )), ".." , "data" , "category.csv" )
242+ filename = os .path .join (os .path .dirname (os .path .realpath (__file__ )), ".." , "data" , "category.csv" ) # noqa: PTH118
243243 cursor .execute (f"SELECT * FROM '{ filename } '" )
244244 assert cursor .fetch_arrow_table ().to_pydict () == {
245245 "CATEGORY_ID" : [1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 ],
@@ -301,7 +301,7 @@ def test_large_chunk(tmp_path):
301301 # Create the table
302302 table = pyarrow .table ([col1 , col2 , col3 ], names = ["ints" , "floats" , "strings" ])
303303
304- db = os .path .join (tmp_path , "tmp.db" )
304+ db = os .path .join (tmp_path , "tmp.db" ) # noqa: PTH118
305305 if os .path .exists (db ):
306306 os .remove (db )
307307 db_kwargs = {"path" : f"{ db } " }
@@ -327,7 +327,7 @@ def test_dictionary_data(tmp_path):
327327
328328 # Wrap in a table
329329 table = pyarrow .table ({"fruits" : dict_array })
330- db = os .path .join (tmp_path , "tmp.db" )
330+ db = os .path .join (tmp_path , "tmp.db" ) # noqa: PTH118
331331 if os .path .exists (db ):
332332 os .remove (db )
333333 db_kwargs = {"path" : f"{ db } " }
@@ -355,7 +355,7 @@ def test_ree_data(tmp_path):
355355
356356 table = pyarrow .table ({"fruits" : ree_array })
357357
358- db = os .path .join (tmp_path , "tmp.db" )
358+ db = os .path .join (tmp_path , "tmp.db" ) # noqa: PTH118
359359 if os .path .exists (db ):
360360 os .remove (db )
361361 db_kwargs = {"path" : f"{ db } " }
0 commit comments