Skip to content

Commit

Permalink
Format assert
Browse files Browse the repository at this point in the history
  • Loading branch information
merschformann committed Sep 1, 2024
1 parent f6bbf84 commit dc009c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def test_main():
expected = ""
with open(test.golden_log) as file:
expected = file.read()
assert output == expected
assert output == expected, f"Expected:\n{expected}\nGot:\n{output}"

# Compare hash of pixelated file
pix_hash = hash_file(os.path.join(output_dir, "2.pixelated.jpg"))
Expand All @@ -133,7 +133,7 @@ def test_main():
expected = ""
with open(test.golden_pixelated) as file:
expected = file.read()
assert pix_hash == expected
assert pix_hash == expected, f"Expected: {expected}, Got: {pix_hash}"

# Compare hash of output file
out_hash = hash_file(os.path.join(output_dir, "3.output.jpg"))
Expand All @@ -144,7 +144,7 @@ def test_main():
expected = ""
with open(test.golden_output) as file:
expected = file.read()
assert out_hash == expected
assert out_hash == expected, f"Expected: {expected}, Got: {out_hash}"

# Compare bricklink export
bricklink = ""
Expand All @@ -157,7 +157,7 @@ def test_main():
expected = ""
with open(test.golden_bricklink) as file:
expected = file.read()
assert bricklink == expected
assert bricklink == expected, f"Expected:\n{expected}\nGot:\n{bricklink}"


if __name__ == "__main__":
Expand Down

0 comments on commit dc009c1

Please sign in to comment.