Skip to content

Commit

Permalink
Update test/test_create_table.py
Browse files Browse the repository at this point in the history
Co-authored-by: Maciej Brencz <maciej.brencz@gmail.com>
  • Loading branch information
collerek and macbre committed Jun 9, 2021
1 parent 88e4869 commit 675478c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_create_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,6 @@ def test_create_table_as_select_in_parentheses():
(SELECT t.id, t.name, e.name as energy FROM t JOIN e ON t.e_id = e.id)
"""
parser = Parser(qry)
assert parser.query_type == QueryType.CREATE
assert parser.columns == ["t.id", "t.name", "e.name", "t.e_id", "e.id"]
assert parser.tables == ["records", "t", "e"]

0 comments on commit 675478c

Please sign in to comment.