Skip to content

Commit 4f5f582

Browse files
committed
Drop tables in the test
1 parent bd2907c commit 4f5f582

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/sqlalchemy-bigquery/scripts/load_test_data.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ bq rm -f -t test_pybigquery.sample
55
bq rm -f -t test_pybigquery.sample_one_row
66
bq rm -f -t test_pybigquery.sample_dml
77
bq rm -f -t test_pybigquery_location.sample_one_row
8-
bq rm -f -t test_pybigquery.test_table_create
9-
bq rm -f -t test_pybigquery.test_table_create2
108

119
bq mk --table --schema=$(dirname $0)/schema.json --time_partitioning_field timestamp --clustering_fields integer,string test_pybigquery.sample
1210
bq load --source_format=NEWLINE_DELIMITED_JSON --schema=$(dirname $0)/schema.json test_pybigquery.sample $(dirname $0)/sample.json

packages/sqlalchemy-bigquery/test/test_sqlalchemy_bigquery.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ def test_create_table(engine):
400400
Column('binary_c', sqlalchemy.BINARY)
401401
)
402402
meta.create_all(engine)
403+
meta.drop_all(engine)
403404

404405
# Test creating tables with declarative_base
405406
Base = declarative_base()
@@ -410,7 +411,7 @@ class TableTest(Base):
410411
float_c = Column(sqlalchemy.Float)
411412

412413
Base.metadata.create_all(engine)
413-
414+
Base.metadata.drop_all(engine)
414415

415416
def test_schemas_names(inspector, inspector_using_test_dataset):
416417
datasets = inspector.get_schema_names()

0 commit comments

Comments
 (0)