Skip to content

Commit

Permalink
nodeid
Browse files Browse the repository at this point in the history
  • Loading branch information
xlz926 committed Feb 9, 2020
1 parent c3b42b1 commit babfb7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_html/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __init__(self, logfile, config):
class TestResult:

def __init__(self, outcome, report, logfile, config):
self.test_id = report.nodeid
self.test_id = report.nodeid.encode("utf-8").decode("unicode_escape")
if getattr(report, 'when', 'call') != 'call':
self.test_id = '::'.join([report.nodeid.encode("utf-8").decode("unicode_escape"), report.when])
self.time = getattr(report, 'duration', 0.0)
Expand Down

0 comments on commit babfb7b

Please sign in to comment.