Replies: 1 comment 2 replies
-
Sorry about the delayed response, I didn't even realize we had discussions enabled 😓. We have notifications setup for new issues, but nothing watching the discussions. I believe the author of #438 was trying to do the same sort of assertion as you describe just using pytest.approx instead. There are some suggestions and workarounds in that issue. Please let me know if there are any follow up questions. In terms of that specific syntax, it's not possible with the latest syrupy, though it's interesting and may warrant further investigation. What would the underlying snapshot look like? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to implement this assertion to check that
count
is within 10% of the expected value:Is there a good way to do that with
syrupy
?Beta Was this translation helpful? Give feedback.
All reactions