Skip to content

Commit 44a6f50

Browse files
authored
remove test that adds invalid data to actual db (#247)
Signed-off-by: Mihai Criveti <[email protected]>
1 parent 5e3b8cf commit 44a6f50

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

tests/unit/mcpgateway/test_main.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,10 +1058,3 @@ def test_missing_required_fields(self, test_client, auth_headers):
10581058
req = {"description": "Missing required name field"}
10591059
response = test_client.post("/tools/", json=req, headers=auth_headers)
10601060
assert response.status_code == 422 # Validation error
1061-
1062-
def test_invalid_url_format(self, test_client, auth_headers):
1063-
"""Test validation of URL fields."""
1064-
req = {"name": "test_tool", "url": "not-a-valid-url"}
1065-
response = test_client.post("/tools/", json=req, headers=auth_headers)
1066-
# This may pass or fail depending on URL validation implementation
1067-
assert response.status_code in [200, 201, 422]

0 commit comments

Comments
 (0)