We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7916fda commit 6fc6caaCopy full SHA for 6fc6caa
python/example-pytest-selfie/tests/binary_test.py
@@ -50,10 +50,10 @@ def test_base64_mismatch():
50
"""Test error handling for mismatched base64 data"""
51
with pytest.raises(Exception) as exc_info:
52
expect_selfie(b"test data").to_be_base64("AAAA")
53
- expect_selfie(
54
- safify(str(exc_info.value))
55
- ).to_be("Snapshot mismatch, TODO: string comparison")
+ expect_selfie(safify(str(exc_info.value))).to_be(
+ "Snapshot mismatch, TODO: string comparison"
+ )
56
+
57
58
def safify(string: str) -> str:
59
return string.split("\n")[0]
-
0 commit comments