Skip to content

Commit

Permalink
upadte DeprecationsReport to handle SubTests
Browse files Browse the repository at this point in the history
  • Loading branch information
swryan committed May 17, 2024
1 parent 16c6d10 commit 0da8e86
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions testflo/deprecations.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ def get_iter(self, input_iter):

deprecations = {}

for test in input_iter:
for msg, locs in test.deprecations.items():
deprecations[msg] = deprecations.get(msg, set()) | locs
yield test
for tests in input_iter:
for test in tests:
for msg, locs in test.deprecations.items():
deprecations[msg] = deprecations.get(msg, set()) | locs
yield test

report = self.generate_report(deprecations)

Expand Down

0 comments on commit 0da8e86

Please sign in to comment.