MCPcopy
hub / github.com/wandb/openui / test_read_main

Function test_read_main

backend/tests/test_openui.py:6–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4client = TestClient(app)
5
6def test_read_main():
7 response = client.get("/")
8 assert response.status_code == 200
9 assert response.json() == {"message": "Hello World"} # Adjust expected response
10
11def test_create_item():
12 response = client.post("/items/", json={"name": "Test Item", "description": "A test item"})

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected