59
59
pytest .mark .filterwarnings (
60
60
"ignore:Passing a BlockManager to DataFrame:DeprecationWarning"
61
61
),
62
- pytest .mark .single_cpu ,
62
+ pytest .mark .db ,
63
63
]
64
64
65
65
@@ -585,24 +585,6 @@ def get_all_tables(conn):
585
585
return inspect (conn ).get_table_names ()
586
586
587
587
588
- def filter_get_all_tables (conn , extract_this_value ):
589
- tables = get_all_tables (conn )
590
- return_val = []
591
- for t in tables :
592
- if t in extract_this_value :
593
- return_val .append (t )
594
- return return_val
595
-
596
- def filter_get_all_views (conn , extract_this_value ):
597
- views = get_all_views (conn )
598
- return_val = []
599
-
600
- for v in views :
601
- if v in extract_this_value :
602
- return_val .append (v )
603
- return return_val
604
-
605
-
606
588
def drop_table (
607
589
table_name : str ,
608
590
conn : sqlite3 .Connection | sqlalchemy .engine .Engine | sqlalchemy .engine .Connection ,
@@ -620,9 +602,10 @@ def drop_table(
620
602
else :
621
603
import sqlalchemy
622
604
# Better matching for dialect string literal tables
623
- quoted_table_name = conn .engine .dialect .identifier_preparer .quote_identifier (
605
+ quoted_table_name = (
606
+ conn .engine .dialect .identifier_preparer .quote_identifier (
624
607
table_name
625
- )
608
+ ))
626
609
stmt = sqlalchemy .text (f"DROP TABLE IF EXISTS { quoted_table_name } " )
627
610
628
611
if isinstance (conn , sqlalchemy .Engine ):
@@ -4900,4 +4883,4 @@ def test_xsqlite_if_exists(connect_and_uuid):
4900
4883
(4 , "D" ),
4901
4884
(5 , "E" ),
4902
4885
]
4903
- drop_table (table_uuid , conn )
4886
+ drop_table (table_uuid , conn )
0 commit comments