summaryrefslogtreecommitdiffstats
path: root/tests/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 5cdc8849..0287a2e9 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -58,11 +58,12 @@ def drop_tables(conn):
DROP SCHEMA IF EXISTS schema2 CASCADE''')
-def run(executor, sql, join=False):
+def run(executor, sql, join=False, expanded=False):
" Return string output for the sql to be run "
result = []
for title, rows, headers, status in executor.run(sql):
- result.extend(format_output(title, rows, headers, status, 'psql'))
+ result.extend(format_output(title, rows, headers, status, 'psql',
+ expanded=expanded))
if join:
result = '\n'.join(result)
return result