summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDarik Gamble <darik.gamble@gmail.com>2015-05-11 19:11:00 -0400
committerDarik Gamble <darik.gamble@gmail.com>2015-05-23 08:33:39 -0400
commit5692782bd283952a72111100820b47091c264702 (patch)
treed576331ea945d7cc21526c2c0b747b5db6822bb5 /tests
parenta169f01609c698da2eb19aedf62785d0bf7663cd (diff)
Give pgexecute a datatypes() method to get custom type names
Not used yet
Diffstat (limited to 'tests')
-rw-r--r--tests/test_pgexecute.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_pgexecute.py b/tests/test_pgexecute.py
index 4a82b5e4..02ddd578 100644
--- a/tests/test_pgexecute.py
+++ b/tests/test_pgexecute.py
@@ -71,6 +71,14 @@ def test_functions_query(executor):
funcs = list(executor.functions())
assert funcs == [('public', 'func1'), ('schema1', 'func2')]
+
+@dbtest
+def test_datatypes_query(executor):
+ run(executor, 'create type foo AS (a int, b text)')
+
+ types = list(executor.datatypes())
+ assert types == [('public', 'foo')]
+
@dbtest
def test_database_list(executor):
databases = executor.databases()