This repository was archived by the owner on Jun 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-24
lines changed Expand file tree Collapse file tree 2 files changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -92,23 +92,3 @@ def test_authorized(self, mock_config):
9292 )
9393 self .assertEqual (response .status_code , status .HTTP_200_OK )
9494 self .assertEqual (response .data , {"is_valid" : True })
95-
96- @patch ("api.gen_ai.views.get_config" , return_value = PAYLOAD_SECRET )
97- def test_unauthorized (self , mock_config ):
98- owner = OwnerFactory (service = "github" , service_id = "owner3" , username = "test3" )
99- GithubAppInstallation .objects .create (
100- installation_id = 2 ,
101- owner = owner ,
102- name = "ai-features" ,
103- repository_service_ids = ["303" , "404" ],
104- )
105- payload = b'{"external_owner_id":"owner3","repo_service_id":"101"}'
106- sig , data = sign_payload (payload )
107- response = self .client .post (
108- VIEW_URL ,
109- data = data ,
110- content_type = "application/json" ,
111- HTTP_HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
112- )
113- self .assertEqual (response .status_code , 200 )
114- self .assertEqual (response .data , {"is_valid" : False })
Original file line number Diff line number Diff line change 2020
2121class TestBasicArithmeticFunctions (unittest .TestCase ):
2222 def test_add (self ):
23- self .assertEqual (add (5 , 3 ), 8 )
24- self .assertEqual (add (- 1 , 1 ), 0 )
25- self .assertEqual (add (0 , 0 ), 0 )
26- self .assertEqual (add (5.5 , 4.5 ), 10.0 )
23+ pass
You can’t perform that action at this time.
0 commit comments