Skip to content

Commit db3f3a2

Browse files
committed
Add a test for records
1 parent 1418e66 commit db3f3a2

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
@@ -151,6 +151,11 @@ def test_content_from_raw_queries(engine):
151151
assert list(rows[0]) == ONE_ROW_CONTENTS
152152

153153

154+
def test_record_content_from_raw_queries(engine):
155+
rows = engine.execute('SELECT record.name FROM test_pybigquery.sample_one_row').fetchall()
156+
assert rows[0][0] == 'John Doe'
157+
158+
154159
def test_content_from_reflect(engine, table_one_row):
155160
rows = table_one_row.select().execute().fetchall()
156161
assert list(rows[0]) == ONE_ROW_CONTENTS_EXPANDED

0 commit comments

Comments
 (0)