-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: unused snapshot not filtered out when specific node #531
Conversation
Codecov Report
@@ Coverage Diff @@
## master #531 +/- ##
===========================================
- Coverage 100.00% 99.91% -0.09%
===========================================
Files 19 19
Lines 1105 1114 +9
===========================================
+ Hits 1105 1113 +8
- Misses 0 1 +1 |
and self._provided_nodes_match_name( | ||
snapshot_location=snapshot_location, | ||
snapshot_name=snapshot.name, | ||
provided_nodes=provided_nodes, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This bit might actually be dead code. It's never hit in tests. I don't think it's harmful at the moment, so will loop back to see if it can be removed, or if there's some edge case we're not testing.
if not provided_nodes: | ||
return True | ||
for node_path in provided_nodes: | ||
if snapshot_name in ".".join(node_path): | ||
return True | ||
return False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This syntax is easier to debug.
"test_2.py::test_a", | ||
) | ||
result.stdout.re_match_lines("2 snapshots passed") | ||
assert result.ret == 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicated this test file since locations for images are handled a bit differently, better safe than sorry.
🎉 This PR is included in version 1.4.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
Related Issues