File tree Expand file tree Collapse file tree 3 files changed +3
-21
lines changed
Expand file tree Collapse file tree 3 files changed +3
-21
lines changed Original file line number Diff line number Diff line change @@ -710,7 +710,7 @@ def generate_vumark_instance(
710710 * ,
711711 target_id : str ,
712712 instance_id : str ,
713- accept : VuMarkAccept = VuMarkAccept . PNG ,
713+ accept : VuMarkAccept ,
714714 ) -> bytes :
715715 """Generate a VuMark instance image.
716716
Original file line number Diff line number Diff line change @@ -765,23 +765,3 @@ def test_generate_vumark_instance(
765765 accept = accept ,
766766 )
767767 assert result .startswith (expected_prefix )
768-
769- @staticmethod
770- def test_generate_vumark_default_accept (
771- vws_client : VWS ,
772- high_quality_image : io .BytesIO ,
773- ) -> None :
774- """By default, PNG is returned."""
775- target_id = vws_client .add_target (
776- name = "x" ,
777- width = 1 ,
778- image = high_quality_image ,
779- active_flag = True ,
780- application_metadata = None ,
781- )
782- vws_client .wait_for_target_processed (target_id = target_id )
783- result = vws_client .generate_vumark_instance (
784- target_id = target_id ,
785- instance_id = "12345" ,
786- )
787- assert result .startswith (b"\x89 PNG\r \n \x1a \n " )
Original file line number Diff line number Diff line change 3636 TargetStatusProcessingError ,
3737 UnknownTargetError ,
3838)
39+ from vws .vumark_accept import VuMarkAccept
3940
4041
4142def test_image_too_large (
@@ -384,6 +385,7 @@ def test_invalid_instance_id(
384385 vws_client .generate_vumark_instance (
385386 target_id = target_id ,
386387 instance_id = "" ,
388+ accept = VuMarkAccept .PNG ,
387389 )
388390
389391 assert exc .value .response .status_code == HTTPStatus .UNPROCESSABLE_ENTITY
You can’t perform that action at this time.
0 commit comments