Skip to content

Commit 7c89e11

Browse files
committed
Updated the test case for gateway registration UI. Updated status code from 303 to 200
Signed-off-by: <Keval Mahajan> <[email protected]>
1 parent 0f1b0ca commit 7c89e11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/mcpgateway/test_admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ async def test_admin_add_gateway(self, mock_register_gateway, mock_request, mock
562562
# Assert
563563
mock_register_gateway.assert_called_once()
564564
assert isinstance(result, JSONResponse)
565-
assert result.status_code == 303
565+
assert result.status_code == 200
566566
assert "/admin#gateways" in result.headers["location"]
567567

568568
@patch.object(GatewayService, "update_gateway")

0 commit comments

Comments
 (0)