Skip to content

Commit a2a8f28

Browse files
Merge pull request #670 from adamtheturtle/corrupted-test-add-and-update
Be more precise with test names
2 parents 69d1993 + 275e415 commit a2a8f28

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/mock_vws/test_add_target.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,14 +440,14 @@ def test_bad_image_format_or_color_space(
440440
result_code=ResultCodes.BAD_IMAGE,
441441
)
442442

443-
def test_too_large(
443+
def test_too_large_and_corrupted(
444444
self,
445445
vuforia_database_keys: VuforiaDatabaseKeys,
446446
png_large: io.BytesIO,
447447
) -> None:
448448
"""
449449
An `ImageTooLarge` result is returned if the image is above a certain
450-
threshold.
450+
threshold and is corrupted.
451451
452452
This threshold is documented as being 2 MB but it is actually
453453
slightly larger. See the `png_large` fixture for more details.

tests/mock_vws/test_update_target.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ def test_image_valid(
734734
result_code=ResultCodes.SUCCESS,
735735
)
736736

737-
def test_bad_image(
737+
def test_bad_image_format_or_color_space(
738738
self,
739739
bad_image_file: io.BytesIO,
740740
vuforia_database_keys: VuforiaDatabaseKeys,
@@ -765,15 +765,15 @@ def test_bad_image(
765765
result_code=ResultCodes.BAD_IMAGE,
766766
)
767767

768-
def test_too_large(
768+
def test_too_large_and_corrupted(
769769
self,
770770
vuforia_database_keys: VuforiaDatabaseKeys,
771771
png_large: io.BytesIO,
772772
target_id: str,
773773
) -> None:
774774
"""
775775
An `ImageTooLarge` result is returned if the image is above a certain
776-
threshold.
776+
threshold and is corrupted.
777777
778778
This threshold is documented as being 2 MB but it is actually
779779
slightly larger. See the `png_large` fixture for more details.

0 commit comments

Comments
 (0)