Skip to content

Commit

Permalink
Fix magic numbers in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CPBridge committed Apr 6, 2024
1 parent 5289189 commit b1433f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def test_jpeg2000_rgb(self):
pixel_representation=0,
planar_configuration=0
)
assert compressed_frame.startswith(b'\x00\x00\x00\x0C\x6A\x50\x20')
assert compressed_frame.startswith(b"\xFF\x4F\xFF\x51")
assert compressed_frame.endswith(b'\xFF\xD9')
decoded_frame = decode_frame(
value=compressed_frame,
Expand All @@ -198,7 +198,7 @@ def test_jpeg2000_monochrome(self):
photometric_interpretation='MONOCHROME2',
pixel_representation=0,
)
assert compressed_frame.startswith(b'\x00\x00\x00\x0C\x6A\x50\x20')
assert compressed_frame.startswith(b"\xFF\x4F\xFF\x51")
assert compressed_frame.endswith(b'\xFF\xD9')
decoded_frame = decode_frame(
value=compressed_frame,
Expand Down

0 comments on commit b1433f0

Please sign in to comment.