Skip to content

Commit 93897c1

Browse files
Verify correct table was pulled
1 parent c34ab1c commit 93897c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test_sqlalchemy_bigquery.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ def test_engine_with_dataset(engine_using_test_dataset):
200200
assert list(rows[0]) == ONE_ROW_CONTENTS_EXPANDED
201201

202202
table_one_row = Table('test_pybigquery.sample_one_row', MetaData(bind=engine_using_test_dataset), autoload=True)
203+
rows = table_one_row.select().execute().fetchall()
204+
# verify that we are pulling from the specifically-named dataset,
205+
# instead of pulling from the default dataset of the engine (which
206+
# does not have this table at all)
207+
assert list(rows[0]) == ONE_ROW_CONTENTS_EXPANDED
203208

204209

205210
def test_dataset_location(engine_with_location):

0 commit comments

Comments
 (0)