@@ -148,6 +148,8 @@ def test_incorrect_no_boundary(
148148 response = response ,
149149 status_code = HTTPStatus .UNSUPPORTED_MEDIA_TYPE ,
150150 content_type = None ,
151+ cache_control = None ,
152+ www_authenticate = None ,
151153 )
152154
153155 def test_incorrect_with_boundary (
@@ -202,6 +204,8 @@ def test_incorrect_with_boundary(
202204 response = response ,
203205 status_code = HTTPStatus .UNSUPPORTED_MEDIA_TYPE ,
204206 content_type = None ,
207+ cache_control = None ,
208+ www_authenticate = None ,
205209 )
206210
207211 @pytest .mark .parametrize (
@@ -263,6 +267,8 @@ def test_no_boundary(
263267 response = response ,
264268 status_code = HTTPStatus .BAD_REQUEST ,
265269 content_type = 'text/html;charset=UTF-8' ,
270+ cache_control = None ,
271+ www_authenticate = None ,
266272 )
267273
268274 def test_bogus_boundary (
@@ -315,6 +321,8 @@ def test_bogus_boundary(
315321 response = response ,
316322 status_code = HTTPStatus .BAD_REQUEST ,
317323 content_type = 'text/html;charset=UTF-8' ,
324+ cache_control = None ,
325+ www_authenticate = None ,
318326 )
319327
320328 def test_extra_section (
@@ -505,6 +513,8 @@ def test_missing_image(
505513 response = response ,
506514 status_code = HTTPStatus .BAD_REQUEST ,
507515 content_type = 'application/json' ,
516+ cache_control = None ,
517+ www_authenticate = None ,
508518 )
509519
510520 def test_extra_fields (
@@ -528,6 +538,8 @@ def test_extra_fields(
528538 response = response ,
529539 content_type = 'application/json' ,
530540 status_code = HTTPStatus .BAD_REQUEST ,
541+ cache_control = None ,
542+ www_authenticate = None ,
531543 )
532544
533545 def test_missing_image_and_extra_fields (
@@ -551,6 +563,8 @@ def test_missing_image_and_extra_fields(
551563 response = response ,
552564 content_type = 'application/json' ,
553565 status_code = HTTPStatus .BAD_REQUEST ,
566+ cache_control = None ,
567+ www_authenticate = None ,
554568 )
555569
556570
@@ -687,6 +701,8 @@ def test_out_of_range(
687701 response = response ,
688702 content_type = 'application/json' ,
689703 status_code = HTTPStatus .BAD_REQUEST ,
704+ cache_control = None ,
705+ www_authenticate = None ,
690706 )
691707
692708 @pytest .mark .parametrize (
@@ -723,6 +739,8 @@ def test_invalid_type(
723739 response = response ,
724740 content_type = 'application/json' ,
725741 status_code = HTTPStatus .BAD_REQUEST ,
742+ cache_control = None ,
743+ www_authenticate = None ,
726744 )
727745
728746
@@ -904,6 +922,8 @@ def test_invalid_value(
904922 response = response ,
905923 status_code = HTTPStatus .BAD_REQUEST ,
906924 content_type = 'application/json' ,
925+ cache_control = None ,
926+ www_authenticate = None ,
907927 )
908928
909929
@@ -1014,6 +1034,8 @@ def test_invalid(
10141034 response = response ,
10151035 status_code = HTTPStatus .NOT_ACCEPTABLE ,
10161036 content_type = None ,
1037+ cache_control = None ,
1038+ www_authenticate = None ,
10171039 )
10181040
10191041
@@ -1090,6 +1112,8 @@ def test_not_image(
10901112 response = response ,
10911113 status_code = HTTPStatus .UNPROCESSABLE_ENTITY ,
10921114 content_type = 'application/json' ,
1115+ cache_control = None ,
1116+ www_authenticate = None ,
10931117 )
10941118 assert response .json ().keys () == {'transaction_id' , 'result_code' }
10951119 assert_valid_transaction_id (response = response )
@@ -1290,6 +1314,8 @@ def test_max_height(self, vuforia_database: VuforiaDatabase) -> None:
12901314 response = response ,
12911315 status_code = HTTPStatus .UNPROCESSABLE_ENTITY ,
12921316 content_type = 'application/json' ,
1317+ cache_control = None ,
1318+ www_authenticate = None ,
12931319 )
12941320 assert response .json ().keys () == {'transaction_id' , 'result_code' }
12951321 assert_valid_transaction_id (response = response )
@@ -1346,6 +1372,8 @@ def test_max_width(self, vuforia_database: VuforiaDatabase) -> None:
13461372 response = response ,
13471373 status_code = HTTPStatus .UNPROCESSABLE_ENTITY ,
13481374 content_type = 'application/json' ,
1375+ cache_control = None ,
1376+ www_authenticate = None ,
13491377 )
13501378 assert response .json ().keys () == {'transaction_id' , 'result_code' }
13511379 assert_valid_transaction_id (response = response )
@@ -1413,6 +1441,8 @@ def test_unsupported(
14131441 response = response ,
14141442 status_code = HTTPStatus .UNPROCESSABLE_ENTITY ,
14151443 content_type = 'application/json' ,
1444+ cache_control = None ,
1445+ www_authenticate = None ,
14161446 )
14171447 assert response .json ().keys () == {'transaction_id' , 'result_code' }
14181448 assert_valid_transaction_id (response = response )
@@ -1500,6 +1530,8 @@ def test_processing(
15001530 response = response ,
15011531 content_type = 'text/html; charset=ISO-8859-1' ,
15021532 status_code = HTTPStatus .INTERNAL_SERVER_ERROR ,
1533+ cache_control = 'must-revalidate,no-cache,no-store' ,
1534+ www_authenticate = None ,
15031535 )
15041536
15051537
@@ -1637,6 +1669,8 @@ def test_deleted(
16371669 response = response ,
16381670 content_type = 'text/html; charset=ISO-8859-1' ,
16391671 status_code = HTTPStatus .INTERNAL_SERVER_ERROR ,
1672+ cache_control = 'must-revalidate,no-cache,no-store' ,
1673+ www_authenticate = None ,
16401674 )
16411675
16421676 return
@@ -1876,6 +1910,8 @@ def test_inactive_project(
18761910 response = response ,
18771911 status_code = HTTPStatus .FORBIDDEN ,
18781912 content_type = 'application/json' ,
1913+ cache_control = None ,
1914+ www_authenticate = None ,
18791915 )
18801916 assert response .json ().keys () == {'transaction_id' , 'result_code' }
18811917 assert_valid_transaction_id (response = response )
0 commit comments