diff options
author | koljonen <koljonen@outlook.com> | 2016-06-14 22:44:36 +0200 |
---|---|---|
committer | koljonen <koljonen@outlook.com> | 2016-06-14 22:44:36 +0200 |
commit | b69404c21545baf024579fcba90b38f0418b85df (patch) | |
tree | 13e7e068d9a9ded93a2d072f3d0199ee4c493639 /tests/test_sqlcompletion.py | |
parent | 6cb8c38628791e18dc5bf1a2a25c13497058c3eb (diff) |
Add a couple of tests suggested by @darikg
Diffstat (limited to 'tests/test_sqlcompletion.py')
-rw-r--r-- | tests/test_sqlcompletion.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_sqlcompletion.py b/tests/test_sqlcompletion.py index a7f5330d..80d27603 100644 --- a/tests/test_sqlcompletion.py +++ b/tests/test_sqlcompletion.py @@ -123,7 +123,7 @@ def test_suggest_tables_views_schemas_and_functions(expression): @pytest.mark.parametrize('expression', [ 'SELECT * FROM foo JOIN bar on bar.barid = foo.barid JOIN ', - 'SELECT * FROM foo JOIN bar USING (barid) JOIN ', + 'SELECT * FROM foo JOIN bar USING (barid) JOIN ' ]) def test_suggest_after_join_with_two_tables(expression): suggestions = suggest_type(expression, expression) @@ -137,7 +137,8 @@ def test_suggest_after_join_with_two_tables(expression): @pytest.mark.parametrize('expression', [ - 'SELECT * FROM foo JOIN ' + 'SELECT * FROM foo JOIN ', + 'SELECT * FROM foo JOIN bar' ]) def test_suggest_after_join_with_one_table(expression): suggestions = suggest_type(expression, expression) |