Skip to content

Commit a7c38fe

Browse files
committed
Fixing the test
1 parent 94cba2a commit a7c38fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pytest_bdd/gherkin_terminal_reporter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def configure(config):
3434

3535

3636
class GherkinTerminalReporter(TerminalReporter):
37+
3738
def __init__(self, config):
3839
TerminalReporter.__init__(self, config)
3940

@@ -46,7 +47,7 @@ def pytest_runtest_logreport(self, report):
4647
rep = report
4748
res = self.config.hook.pytest_report_teststatus(report=rep)
4849
cat, letter, word = res
49-
self.stats.setdefault(cat, []).append(rep)
50+
5051
if not letter and not word:
5152
# probably passed setup/teardown
5253
return
@@ -94,3 +95,4 @@ def pytest_runtest_logreport(self, report):
9495
self._tw.write('\n\n')
9596
else:
9697
return TerminalReporter.pytest_runtest_logreport(self, rep)
98+
self.stats.setdefault(cat, []).append(rep)

0 commit comments

Comments
 (0)