File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -796,6 +796,33 @@ def test_corrupted(
796796 result_code = ResultCodes .SUCCESS ,
797797 )
798798
799+ def test_image_too_large (
800+ self ,
801+ vuforia_database_keys : VuforiaDatabaseKeys ,
802+ target_id : str ,
803+ ) -> None :
804+ """
805+ No error is returned when the given image is corrupted.
806+ """
807+ image_data_encoded = base64 .b64encode (image_data ).decode ('ascii' )
808+
809+ wait_for_target_processed (
810+ vuforia_database_keys = vuforia_database_keys ,
811+ target_id = target_id ,
812+ )
813+
814+ response = update_target (
815+ vuforia_database_keys = vuforia_database_keys ,
816+ data = {'image' : image_data_encoded },
817+ target_id = target_id ,
818+ )
819+
820+ assert_vws_response (
821+ response = response ,
822+ status_code = codes .OK ,
823+ result_code = ResultCodes .SUCCESS ,
824+ )
825+
799826 def test_not_base64_encoded (
800827 self ,
801828 vuforia_database_keys : VuforiaDatabaseKeys ,
You can’t perform that action at this time.
0 commit comments