Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit b426866

Browse files
Remove test cases from test files
1 parent 17c20ec commit b426866

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

api/gen_ai/tests/test_gen_ai.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff 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})

api/gen_ai/tests/test_math.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,4 @@
2020

2121
class 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

0 commit comments

Comments
 (0)