bdd: Make TestProcess.log_summary public

We want to use it from the BDD conftest.py
This commit is contained in:
Florian Bruhin 2016-04-20 07:55:23 +02:00
parent 6cf4cebfd4
commit 4520261884
2 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@ class QuteProc(testprocess.Process):
summary = command
if count is not None:
summary += ' (count {})'.format(count)
self._log_summary(summary)
self.log_summary(summary)
assert self._ipc_socket is not None

View File

@ -157,7 +157,7 @@ class Process(QObject):
print(line)
self.captured_log.append(line)
def _log_summary(self, text):
def log_summary(self, text):
"""Log the given line as summary/title."""
text = '\n{line} {text} {line}\n'.format(line='='*50, text=text)
self._log(text)