-
Notifications
You must be signed in to change notification settings - Fork 43
Compare serialized data in assertion compr & improve diff report #46
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
Changes from all commits
b4d9fb8
b03603e
4fb7595
2230501
b7842b4
756538c
c8488d6
c945ba7
ae64458
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ semver | |
twine | ||
wheel | ||
py-githooks | ||
pytest-cov | ||
codecov | ||
isort | ||
coverage[toml] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,8 @@ def test_image(snapshot_png): | |
b"RK5CYII=" | ||
) | ||
assert actual == snapshot_png | ||
|
||
|
||
def test_raises_error_for_unserializable_data(snapshot_png): | ||
with pytest.raises(ValueError): | ||
assert "not a byte string" == snapshot_png | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure if it's best to throw an error here, or consider this a failed snapshot. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could wrap the serialization with an error handler and compare the raw values if it fails |
Uh oh!
There was an error while loading. Please reload this page.