summaryrefslogtreecommitdiffstats
path: root/tests/test_smart_completion_public_schema_only.py
diff options
context:
space:
mode:
authorÉtienne BERSAC <etienne.bersac@dalibo.com>2017-06-14 17:06:04 +0200
committerÉtienne BERSAC <etienne.bersac@dalibo.com>2017-06-14 18:12:05 +0200
commite124c035756dc3407778eb3cd26bd691542fdff1 (patch)
tree1b795d90ccac22ffa29da3d02bcc1464f0442310 /tests/test_smart_completion_public_schema_only.py
parentf4d6adfc2c7c34799711c5ed7d425c55f9719e4a (diff)
Fix PEP8 empty line errors
Diffstat (limited to 'tests/test_smart_completion_public_schema_only.py')
-rw-r--r--tests/test_smart_completion_public_schema_only.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_smart_completion_public_schema_only.py b/tests/test_smart_completion_public_schema_only.py
index 71047262..b87e0dc2 100644
--- a/tests/test_smart_completion_public_schema_only.py
+++ b/tests/test_smart_completion_public_schema_only.py
@@ -75,6 +75,7 @@ def test_builtin_function_name_completion(completer):
keyword('MAXEXTENTS', -2), keyword('MATERIALIZED VIEW', -2)
])
+
@parametrize('completer', completers())
def test_builtin_function_matches_only_at_start(completer):
text = 'SELECT IN'
@@ -205,7 +206,6 @@ def test_suggested_multiple_column_names_with_alias(completer):
assert result == set(testdata.columns('users'))
-
@parametrize('completer', completers(casing=True))
def test_suggested_cased_column_names_with_alias(completer):
result = result_set(
@@ -325,6 +325,7 @@ def test_suggested_joins_fuzzy(completer, text):
expected = join('users ON users.id = u.userid', -len(last_word))
assert expected in result
+
join_texts = [
'SELECT * FROM Users JOIN ',
'''INSERT INTO "Users"
@@ -853,6 +854,7 @@ def test_keyword_casing_upper(keyword_casing, expected, texts):
completions = get_result(completer, text)
assert expected in [cpl.text for cpl in completions]
+
@parametrize('completer', completers())
def test_keyword_after_alter(completer):
text = 'ALTER TABLE users ALTER '