chore: add frontend dependencies and update test fixtures
- Add react-router-dom, @tanstack/react-query, zustand, @headlessui/react - Update pnpm workspace configuration - Update test fixtures to reference OpenCode instead of RunFusion - Add frontend environment variable examples - Update .gitignore for .opencode and .sisyphus directories
This commit is contained in:
@@ -6,7 +6,11 @@ from httpx import AsyncClient
|
||||
async def test_tool_definition_crud(auth_client: AsyncClient) -> None:
|
||||
resp = await auth_client.post(
|
||||
"/api/v1/tool-definitions",
|
||||
json={"key": "runfusion", "name": "RunFusion", "image": "runfusion:latest"},
|
||||
json={
|
||||
"key": "opencode",
|
||||
"name": "OpenCode",
|
||||
"image": "ghcr.io/opencode-ai/opencode:latest",
|
||||
},
|
||||
)
|
||||
assert resp.status_code == 201
|
||||
td_id = resp.json()["id"]
|
||||
@@ -18,9 +22,9 @@ async def test_tool_definition_crud(auth_client: AsyncClient) -> None:
|
||||
resp = await auth_client.get(f"/api/v1/tool-definitions/{td_id}")
|
||||
assert resp.status_code == 200
|
||||
|
||||
resp = await auth_client.put(f"/api/v1/tool-definitions/{td_id}", json={"name": "RunFusionV2"})
|
||||
resp = await auth_client.put(f"/api/v1/tool-definitions/{td_id}", json={"name": "OpenCodeV2"})
|
||||
assert resp.status_code == 200
|
||||
assert resp.json()["name"] == "RunFusionV2"
|
||||
assert resp.json()["name"] == "OpenCodeV2"
|
||||
|
||||
resp = await auth_client.delete(f"/api/v1/tool-definitions/{td_id}")
|
||||
assert resp.status_code == 204
|
||||
|
||||
Reference in New Issue
Block a user