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 b697dce commit 6c5178fCopy full SHA for 6c5178f
python/example-pytest-selfie/tests/binary_test.py
@@ -51,7 +51,11 @@ def test_base64_mismatch():
51
with pytest.raises(Exception) as exc_info:
52
expect_selfie(b"test data").to_be_base64("AAAA")
53
expect_selfie(
54
- str(exc_info.value)
+ safify(str(exc_info.value))
55
).to_be("""Snapshot mismatch, TODO: string comparison
56
- update this snapshot by adding `_TODO` to the function name
57
-- update all snapshots in this file by adding `#selfieonce` or `#SELFIEWRITE`""")
+- update all snapshots in this file by adding `#safewordonce` or `#safewordWRITE`""")
58
+
59
+def safify(string: str) -> str:
60
+ return string.replace("selfie", "safeword").replace("SELFIE", "safeword")
61
0 commit comments