bdd: Make TestProcess.log_summary public
We want to use it from the BDD conftest.py
This commit is contained in:
parent
6cf4cebfd4
commit
4520261884
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user