@@ -2700,20 +2700,20 @@ def test_drop_table(conn, request):
2700
2700
assert not insp .has_table ("temp_frame" )
2701
2701
2702
2702
2703
- @pytest .mark .parametrize ("conn " , all_connectable )
2704
- def test_delete_rows_success (conn , test_frame1 , request ):
2703
+ @pytest .mark .parametrize ("conn_name " , all_connectable )
2704
+ def test_delete_rows_success (conn_name , test_frame1 , request ):
2705
2705
table_name = "temp_frame"
2706
- conn = request .getfixturevalue (conn )
2707
- pandasSQL = pandasSQL_builder (conn )
2706
+ conn = request .getfixturevalue (conn_name )
2708
2707
2709
- with pandasSQL .run_transaction ():
2710
- assert pandasSQL .to_sql (test_frame1 , table_name ) == test_frame1 .shape [0 ]
2708
+ with pandasSQL_builder (conn ) as pandasSQL :
2709
+ with pandasSQL .run_transaction ():
2710
+ assert pandasSQL .to_sql (test_frame1 , table_name ) == test_frame1 .shape [0 ]
2711
2711
2712
- with pandasSQL .run_transaction ():
2713
- assert pandasSQL .delete_rows (table_name ) is None
2712
+ with pandasSQL .run_transaction ():
2713
+ assert pandasSQL .delete_rows (table_name ) is None
2714
2714
2715
- assert count_rows (conn , table_name ) == 0
2716
- assert pandasSQL .has_table ("temp_frame" )
2715
+ assert count_rows (conn , table_name ) == 0
2716
+ assert pandasSQL .has_table ("temp_frame" )
2717
2717
2718
2718
2719
2719
@pytest .mark .parametrize ("conn_name" , all_connectable )
0 commit comments