We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e61f26a commit a804860Copy full SHA for a804860
pytest_reportportal/plugin.py
@@ -22,17 +22,17 @@ class RP_Report_Listener(object):
22
def pytest_runtest_makereport(self, item, call):
23
report = (yield).get_result()
24
25
+ if report.when == "setup":
26
+ # when function pytest_setup is called,
27
+ # test item session will be started in RP
28
+ PyTestService.start_pytest_item(item)
29
+
30
if report.longrepr:
31
PyTestService.post_log(
32
cgi.escape(report.longreprtext),
33
loglevel='ERROR',
34
)
35
- if report.when == "setup":
- # when function pytest_setup is called,
- # test item session will be started in RP
- PyTestService.start_pytest_item(item)
-
36
if report.when == "call":
37
self.called = True
38
if report.passed:
0 commit comments