generated from coulomb/repo-seed
docs/API smoke coverage
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user