Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pytest_reportportal/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ class RP_Report_Listener(object):
def pytest_runtest_makereport(self, item, call):
report = (yield).get_result()

if report.when == "setup":
# when function pytest_setup is called,
# test item session will be started in RP
PyTestService.start_pytest_item(item)

if report.longrepr:
PyTestService.post_log(
cgi.escape(report.longreprtext),
loglevel='ERROR',
)

if report.when == "setup":
# when function pytest_setup is called,
# test item session will be started in RP
PyTestService.start_pytest_item(item)

if report.when == "call":
self.called = True
if report.passed:
Expand Down