Skip to content

Commit d794725

Browse files
committed
Ask for help with pythong
1 parent 51fefff commit d794725

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/example-pytest-selfie/tests/binary_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_binary_file_duplicate_unequal():
4141
"tests/binary_test__test_binary_file_duplicate_unequal.bin"
4242
)
4343
expect_selfie(safify(str(exc_info.value))).to_be(
44-
"Snapshot mismatch, TODO: string comparison"
44+
"Snapshot mismatch (error msg could be better https://github.com/diffplug/selfie/issues/501)"
4545
)
4646

4747

@@ -65,7 +65,7 @@ def test_base64_mismatch():
6565
with pytest.raises(Exception) as exc_info:
6666
expect_selfie(b"test data").to_be_base64("AAAA")
6767
expect_selfie(safify(str(exc_info.value))).to_be(
68-
"Snapshot mismatch, TODO: string comparison"
68+
"Snapshot mismatch (error msg could be better https://github.com/diffplug/selfie/issues/501)"
6969
)
7070

7171

python/selfie-lib/selfie_lib/SnapshotSystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def msg_snapshot_not_found_no_such_file(self, file) -> str:
125125
return self.msg(f"Snapshot not found: no such file {file}")
126126

127127
def msg_snapshot_mismatch(self, expected: str, actual: str) -> str: # noqa: ARG002
128-
return self.msg("Snapshot mismatch, TODO: string comparison")
128+
return self.msg("Snapshot mismatch (error msg could be better https://github.com/diffplug/selfie/issues/501)")
129129

130130
def msg_snapshot_mismatch_binary(self, expected: bytes, actual: bytes) -> str:
131131
return self.msg_snapshot_mismatch(

0 commit comments

Comments
 (0)