Fix gherkin terminal reporter not displaying the test item location (a test was failing).

This commit is contained in:
Alessio Bogon 2020-09-05 20:04:25 +02:00
parent d78eaace80
commit 688c963dac
1 changed files with 0 additions and 5 deletions

View File

@ -51,11 +51,6 @@ class GherkinTerminalReporter(TerminalReporter):
def __init__(self, config): def __init__(self, config):
TerminalReporter.__init__(self, config) TerminalReporter.__init__(self, config)
def pytest_runtest_logstart(self, nodeid, location):
# Prevent locationline from being printed since we already
# show the module_name & in verbose mode the test name.
pass
def pytest_runtest_logreport(self, report): def pytest_runtest_logreport(self, report):
rep = report rep = report
res = self.config.hook.pytest_report_teststatus(report=rep, config=self.config) res = self.config.hook.pytest_report_teststatus(report=rep, config=self.config)