summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDarik Gamble <darik.gamble@gmail.com>2015-05-19 19:58:38 -0400
committerDarik Gamble <darik.gamble@gmail.com>2015-05-20 17:59:32 -0400
commit70732f0025dffc0ae156cd9a7b56b872c3534b6d (patch)
tree5909258c24f0631f6f26bd559bf485f49cae6557 /tests
parentd0eef1bb1447737b7341da268e3dc6361d17a9c3 (diff)
`drop schema` and `create schema` should suggest schemas
Diffstat (limited to 'tests')
-rw-r--r--tests/test_sqlcompletion.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_sqlcompletion.py b/tests/test_sqlcompletion.py
index 206c77b1..c495e5ac 100644
--- a/tests/test_sqlcompletion.py
+++ b/tests/test_sqlcompletion.py
@@ -384,3 +384,8 @@ def test_handle_pre_completion_comma_gracefully(text):
suggestions = suggest_type(text, text)
assert iter(suggestions)
+
+
+def test_drop_schema_suggests_schemas():
+ sql = 'DROP SCHEMA '
+ assert suggest_type(sql, sql) == [{'type': 'schema'}] \ No newline at end of file