Skip to content

Commit

Permalink
re #103, check for inconsistent fail_reports data
Browse files Browse the repository at this point in the history
  • Loading branch information
tarpas committed Jun 23, 2018
1 parent a9ac699 commit ef3f6d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testmon/pytest_testmon.py
Expand Up @@ -221,6 +221,7 @@ def pytest_runtest_protocol(self, item, nextitem):
del self.testmon_data.reports[item.nodeid]

def pytest_runtest_logreport(self, report):
assert report.when not in [r['when'] for r in self.testmon_data.reports[report.nodeid]]
self.testmon_data.reports[report.nodeid].append(serialize_report(report))

class FakeItemFromTestmon(object):
Expand Down

0 comments on commit ef3f6d3

Please sign in to comment.