Skip to content

Commit

Permalink
Add a test coverage for the NATURAL JOIN
Browse files Browse the repository at this point in the history
A follow-up of #403
  • Loading branch information
macbre committed Sep 24, 2023
1 parent 9590153 commit 18aed63
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test_sqlite.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""
Set of unit tests for handling of SQLite queries
"""

from sql_metadata.parser import Parser


def test_natural_join():
query = "SELECT id FROM table1 NATURAL JOIN table2"

assert ["table1", "table2"] == Parser(query).tables
assert ["id"] == Parser(query).columns

0 comments on commit 18aed63

Please sign in to comment.