Skip to content

Commit

Permalink
fix: filter ran items using selected items, close #451 (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah committed Aug 29, 2021
1 parent 0b4e544 commit 7374862
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/syrupy/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def start(self) -> None:
self._locations_discovered = defaultdict(set)

def ran_item(self, nodeid: str) -> None:
self._selected_items[nodeid] = True
if nodeid in self._selected_items:
self._selected_items[nodeid] = True

def finish(self) -> int:
exitstatus = 0
Expand Down

0 comments on commit 7374862

Please sign in to comment.