summaryrefslogtreecommitdiffstats
path: root/tests/test_sqlcompletion.py
diff options
context:
space:
mode:
authorJoakim Koljonen <koljonen@outlook.com>2017-07-05 17:57:38 +0200
committerJoakim Koljonen <koljonen@outlook.com>2017-07-05 17:57:38 +0200
commit2b0ca684d46336333068172d1ea2e7eb92f7d12d (patch)
tree8a51c54d324689ce208502c11e7a039ceb285708 /tests/test_sqlcompletion.py
parent3081caa1aafde076a8472d62091d131dd8ee72c8 (diff)
Add defaults to column metadata
Diffstat (limited to 'tests/test_sqlcompletion.py')
-rw-r--r--tests/test_sqlcompletion.py21
1 files changed, 18 insertions, 3 deletions
diff --git a/tests/test_sqlcompletion.py b/tests/test_sqlcompletion.py
index 9e5bca98..85fc3789 100644
--- a/tests/test_sqlcompletion.py
+++ b/tests/test_sqlcompletion.py
@@ -313,17 +313,32 @@ def test_into_suggests_tables_and_schemas():
])
def test_insert_into_lparen_suggests_cols(text):
suggestions = suggest_type(text, 'INSERT INTO abc (')
- assert suggestions ==(Column(table_refs=((None, 'abc', None, False),)),)
+ assert suggestions == (
+ Column(
+ table_refs=((None, 'abc', None, False),),
+ context='insert'
+ ),
+ )
def test_insert_into_lparen_partial_text_suggests_cols():
suggestions = suggest_type('INSERT INTO abc (i', 'INSERT INTO abc (i')
- assert suggestions ==(Column(table_refs=((None, 'abc', None, False),)),)
+ assert suggestions == (
+ Column(
+ table_refs=((None, 'abc', None, False),),
+ context='insert'
+ ),
+ )
def test_insert_into_lparen_comma_suggests_cols():
suggestions = suggest_type('INSERT INTO abc (id,', 'INSERT INTO abc (id,')
- assert suggestions ==(Column(table_refs=((None, 'abc', None, False),)),)
+ assert suggestions == (
+ Column(
+ table_refs=((None, 'abc', None, False),),
+ context='insert'
+ ),
+ )
def test_partially_typed_col_name_suggests_col_names():