API-completeness polish
This commit is contained in:
parent
70feabe965
commit
d786589dd1
2 changed files with 364 additions and 26 deletions
|
|
@ -20,10 +20,18 @@ def test_openapi_groups_agent_facing_endpoints():
|
|||
}
|
||||
search_operation = schema["paths"]["/search"]["get"]
|
||||
assert search_operation["tags"] == ["search"]
|
||||
search_response = search_operation["responses"]["200"]["content"][
|
||||
"application/json"
|
||||
]["schema"]
|
||||
assert search_response["items"]["$ref"].endswith("/SearchResultResponse")
|
||||
assert {
|
||||
parameter["name"]: parameter["description"]
|
||||
for parameter in search_operation["parameters"]
|
||||
}["q"].startswith("Natural-language")
|
||||
ability_map_response = schema["paths"]["/repos/{repository_id}/ability-map"][
|
||||
"get"
|
||||
]["responses"]["200"]["content"]["application/json"]["schema"]
|
||||
assert ability_map_response["$ref"].endswith("/RepositoryAbilityMapResponse")
|
||||
|
||||
|
||||
def test_api_manual_registry_loop(tmp_path):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue