summaryrefslogtreecommitdiffstats
path: root/tests/test_smart_completion_public_schema_only.py
diff options
context:
space:
mode:
authorDarik Gamble <darik.gamble@gmail.com>2015-09-02 10:48:21 -0400
committerDarik Gamble <darik.gamble@gmail.com>2015-09-23 14:09:37 -0400
commit2e9dce513b069c674e33444fe7c9d8ce0c657e74 (patch)
tree69ffbe279715c05e88bf635880c8e5d98a637b9f /tests/test_smart_completion_public_schema_only.py
parente08c54dafb6941bea4465f94b46f2cfaff3f9497 (diff)
pgexecute returns additional function metadata
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 2f75069d..e1e2ac17 100644
--- a/tests/test_smart_completion_public_schema_only.py
+++ b/tests/test_smart_completion_public_schema_only.py
@@ -2,6 +2,7 @@ from __future__ import unicode_literals
import pytest
from prompt_toolkit.completion import Completion
from prompt_toolkit.document import Document
+from pgcli.pgexecute import FunctionMetadata
metadata = {
'tables': {
@@ -42,7 +43,8 @@ def completer():
comp.extend_columns(columns, kind='views')
# functions
- functions = [('public', func) for func in metadata['functions']]
+ functions = [FunctionMetadata('public', func, '', '', False, False, False)
+ for func in metadata['functions']]
comp.extend_functions(functions)
# types