summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDick Marinus <dick@mrns.nl>2019-01-22 19:18:39 +0100
committerDick Marinus <dick@mrns.nl>2019-01-22 19:18:39 +0100
commita88c693c49feb9c9b9fe253e1e35adb10af2efa5 (patch)
tree2eabe3cccb5e298fdb5c81eb66dbcade70c54d75
parent9306d94bf0838219fe885d6fe4303aa44c8c0125 (diff)
fixup! Clean up and add behave logging (#956)
-rw-r--r--changelog.rst6
-rw-r--r--tests/features/steps/wrappers.py2
2 files changed, 8 insertions, 0 deletions
diff --git a/changelog.rst b/changelog.rst
index 9c96f3cf..9bc3800a 100644
--- a/changelog.rst
+++ b/changelog.rst
@@ -5,6 +5,12 @@ Bug fixes:
----------
* Avoid error message on the server side if hstore extension is not installed in the current database (#991). (Thanks: `Marcin Cieślak`_)
+Internal:
+---------
+
+* (Fixup) Clean up and add behave logging. (Thanks: `Marcin Cieślak`_, `Dick Marinus`_)
+* Override VISUAL environment variable for behave tests. (Thanks: `Marcin Cieślak`_)
+
2.0.2:
======
diff --git a/tests/features/steps/wrappers.py b/tests/features/steps/wrappers.py
index b553a3f1..0aac3c5d 100644
--- a/tests/features/steps/wrappers.py
+++ b/tests/features/steps/wrappers.py
@@ -56,6 +56,8 @@ def run_cli(context, run_args=None):
cmd_parts = [cli_cmd] + run_args
cmd = ' '.join(cmd_parts)
context.cli = pexpect.spawnu(cmd, cwd=context.package_root)
+ context.logfile = StringIO()
+ context.cli.logfile = context.logfile
context.exit_sent = False
context.currentdb = context.conf['dbname']
context.cli.sendline('\pset pager always')