summaryrefslogtreecommitdiffstats
path: root/tests/test_smart_completion_multiple_schemata.py
diff options
context:
space:
mode:
authorkoljonen <koljonen@outlook.com>2016-06-18 21:21:17 +0200
committerkoljonen <koljonen@outlook.com>2016-06-18 21:21:17 +0200
commit42cf384ede0d6114311c3145082a8aa529e26c03 (patch)
treebd7a9576f86b1172a39ac7744a5e41bb14442a62 /tests/test_smart_completion_multiple_schemata.py
parentc3c18bcebe125dffd6c4773f2ce0f910362b4fac (diff)
In completion tests, get datatypes from metadata instead of manually listing them
Diffstat (limited to 'tests/test_smart_completion_multiple_schemata.py')
-rw-r--r--tests/test_smart_completion_multiple_schemata.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/test_smart_completion_multiple_schemata.py b/tests/test_smart_completion_multiple_schemata.py
index 415fd0e3..f7000bfa 100644
--- a/tests/test_smart_completion_multiple_schemata.py
+++ b/tests/test_smart_completion_multiple_schemata.py
@@ -5,7 +5,6 @@ from metadata import (MetaData, alias, name_join, fk_join, join,
table,
function,
column,
- datatype,
wildcard_expansion)
from prompt_toolkit.document import Document
from pgcli.packages.function_metadata import FunctionMetadata, ForeignKey
@@ -357,9 +356,7 @@ def test_schema_qualified_type_name(text, completer, complete_event):
pos = len(text)
result = completer.get_completions(
Document(text=text, cursor_position=pos), complete_event)
- assert set(result) == set([
- datatype('typ3'),
- datatype('typ4'),
+ assert set(result) == set(testdata.datatypes('custom') + [
table('users'),
table('"Users"'),
table('products'),