summaryrefslogtreecommitdiffstats
path: root/tests/test_smart_completion_multiple_schemata.py
diff options
context:
space:
mode:
authorkoljonen <koljonen@outlook.com>2016-06-18 19:11:11 +0200
committerkoljonen <koljonen@outlook.com>2016-06-18 21:25:59 +0200
commit475796ab4fa8d77d0a3b93cea2367346cd1b12d3 (patch)
tree618510fda35dde01bb4cdfb83834c23071890d06 /tests/test_smart_completion_multiple_schemata.py
parent69a6d0b38f88ccfa66ebb837f1ba2c7b2e7a54b8 (diff)
Fix indentation of test_smart_completion_* metadata dicts
Diffstat (limited to 'tests/test_smart_completion_multiple_schemata.py')
-rw-r--r--tests/test_smart_completion_multiple_schemata.py72
1 files changed, 35 insertions, 37 deletions
diff --git a/tests/test_smart_completion_multiple_schemata.py b/tests/test_smart_completion_multiple_schemata.py
index e87c9f1f..a8167ba4 100644
--- a/tests/test_smart_completion_multiple_schemata.py
+++ b/tests/test_smart_completion_multiple_schemata.py
@@ -7,43 +7,41 @@ from prompt_toolkit.document import Document
from pgcli.packages.function_metadata import FunctionMetadata, ForeignKey
metadata = {
- 'tables': {
- 'public': {
- 'users': ['id', 'email', 'first_name', 'last_name'],
- 'orders': ['id', 'ordered_date', 'status'],
- 'select': ['id', 'insert', 'ABC']
- },
- 'custom': {
- 'users': ['id', 'phone_number'],
- 'Users': ['userid', 'username'],
- 'products': ['id', 'product_name', 'price'],
- 'shipments': ['id', 'address', 'user_id']
- },
- 'Custom': {
- 'projects': ['projectid', 'name']
- }},
- 'functions': {
- 'public': [
- ['func1', [], [], [], '', False, False,
- False],
- ['func2', [], [], [], '', False, False,
- False]],
- 'custom': [
- ['func3', [], [], [], '', False, False, False],
- ['set_returning_func', ['x'], ['integer'], ['o'],
- 'integer', False, False, True]],
- 'Custom': [
- ['func4', [], [], [], '', False, False, False]]
- },
- 'datatypes': {
- 'public': ['typ1', 'typ2'],
- 'custom': ['typ3', 'typ4'],
- },
- 'foreignkeys': {
- 'custom': [
- ('public', 'users', 'id', 'custom', 'shipments', 'user_id')
- ]},
- }
+ 'tables': {
+ 'public': {
+ 'users': ['id', 'email', 'first_name', 'last_name'],
+ 'orders': ['id', 'ordered_date', 'status'],
+ 'select': ['id', 'insert', 'ABC']
+ },
+ 'custom': {
+ 'users': ['id', 'phone_number'],
+ 'Users': ['userid', 'username'],
+ 'products': ['id', 'product_name', 'price'],
+ 'shipments': ['id', 'address', 'user_id']
+ },
+ 'Custom': {
+ 'projects': ['projectid', 'name']
+ }},
+ 'functions': {
+ 'public': [
+ ['func1', [], [], [], '', False, False, False],
+ ['func2', [], [], [], '', False, False, False]],
+ 'custom': [
+ ['func3', [], [], [], '', False, False, False],
+ ['set_returning_func', ['x'], ['integer'], ['o'],
+ 'integer', False, False, True]],
+ 'Custom': [
+ ['func4', [], [], [], '', False, False, False]]
+ },
+ 'datatypes': {
+ 'public': ['typ1', 'typ2'],
+ 'custom': ['typ3', 'typ4'],
+ },
+ 'foreignkeys': {
+ 'custom': [
+ ('public', 'users', 'id', 'custom', 'shipments', 'user_id')
+ ]},
+}
testdata = MetaData(metadata)