#3203 Remove progress when no-capture
This commit is contained in:
parent
bedceaacc4
commit
46c5d5355e
|
@ -324,6 +324,8 @@ class TerminalReporter(object):
|
||||||
_PROGRESS_LENGTH = len(' [100%]')
|
_PROGRESS_LENGTH = len(' [100%]')
|
||||||
|
|
||||||
def _get_progress_information_message(self):
|
def _get_progress_information_message(self):
|
||||||
|
if self.config.getoption('capture') == 'no':
|
||||||
|
return ''
|
||||||
collected = self._session.testscollected
|
collected = self._session.testscollected
|
||||||
if collected:
|
if collected:
|
||||||
progress = len(self._progress_nodeids_reported) * 100 // collected
|
progress = len(self._progress_nodeids_reported) * 100 // collected
|
||||||
|
|
|
@ -1045,6 +1045,7 @@ class TestProgress(object):
|
||||||
r'test_foo.py \.{5}',
|
r'test_foo.py \.{5}',
|
||||||
r'test_foobar.py \.{5}',
|
r'test_foobar.py \.{5}',
|
||||||
])
|
])
|
||||||
|
assert "%]" not in output.stdout.str()
|
||||||
|
|
||||||
|
|
||||||
class TestProgressWithTeardown(object):
|
class TestProgressWithTeardown(object):
|
||||||
|
|
Loading…
Reference in New Issue