@@ -29,7 +29,7 @@ def test_missing_parameters(self, mock_config):
2929 VIEW_URL ,
3030 data = payload ,
3131 content_type = "application/json" ,
32- HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
32+ HTTP_HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
3333 )
3434 self .assertEqual (response .status_code , 400 )
3535 self .assertIn ("Missing required parameters" , response .data )
@@ -45,7 +45,7 @@ def test_invalid_signature(self, mock_config):
4545 VIEW_URL ,
4646 data = payload ,
4747 content_type = "application/json" ,
48- HTTP_X_GEN_AI_AUTH_SIGNATURE = wrong_sig ,
48+ HTTP_HTTP_X_GEN_AI_AUTH_SIGNATURE = wrong_sig ,
4949 )
5050 self .assertEqual (response .status_code , 403 )
5151
@@ -55,7 +55,7 @@ def test_owner_not_found(self, mock_config):
5555 sig , serialized_data = sign_payload (payload )
5656 response = self .client .post (
5757 VIEW_URL ,
58- HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
58+ HTTP_HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
5959 data = serialized_data ,
6060 content_type = "application/json" ,
6161 )
@@ -70,7 +70,7 @@ def test_no_installation(self, mock_config):
7070 VIEW_URL ,
7171 data = data ,
7272 content_type = "application/json" ,
73- HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
73+ HTTP_HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
7474 )
7575
7676 self .assertEqual (response .status_code , 200 )
@@ -92,7 +92,7 @@ def test_authorized(self, mock_config):
9292 VIEW_URL ,
9393 data = data ,
9494 content_type = "application/json" ,
95- HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
95+ HTTP_HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
9696 )
9797 self .assertEqual (response .status_code , status .HTTP_200_OK )
9898 self .assertEqual (response .data , {"is_valid" : True })
@@ -114,7 +114,7 @@ def test_unauthorized(self, mock_config):
114114 VIEW_URL ,
115115 data = data ,
116116 content_type = "application/json" ,
117- HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
117+ HTTP_HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
118118 )
119119 self .assertEqual (response .status_code , 200 )
120120 self .assertEqual (response .data , {"is_valid" : False })
0 commit comments