docs/API smoke coverage

This commit is contained in:
2026-04-26 12:16:12 +02:00
parent 1f6bd54c15
commit c03a1e93b0

View File

@@ -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(