diff --git a/tests/test_web_api.py b/tests/test_web_api.py index 9b49553..00c75d0 100644 --- a/tests/test_web_api.py +++ b/tests/test_web_api.py @@ -11,6 +11,8 @@ def test_openapi_groups_agent_facing_endpoints(): assert response.status_code == 200 schema = response.json() + assert schema["info"]["title"] == "Repository Ability Registry" + assert schema["info"]["version"] == "0.1.0" assert {tag["name"] for tag in schema["tags"]} >= { "repositories", "analysis", @@ -44,6 +46,16 @@ def test_openapi_groups_agent_facing_endpoints(): ] == "pending" +def test_docs_endpoint_is_available(): + client = TestClient(app) + + response = client.get("/docs") + + assert response.status_code == 200 + assert "Repository Ability Registry" in response.text + assert "openapi.json" in response.text + + def test_api_manual_registry_loop(tmp_path): def override_settings(): return Settings(