search and inspection polish
This commit is contained in:
parent
cc0eef21be
commit
b8627c0e1d
5 changed files with 252 additions and 22 deletions
|
|
@ -211,6 +211,7 @@ def test_api_analysis_run_loop(tmp_path):
|
|||
search_response = client.get("/search", params={"q": "frontend"})
|
||||
assert search_response.status_code == 200
|
||||
assert search_response.json()
|
||||
assert "matched_field" in search_response.json()[0]
|
||||
|
||||
abilities_response = client.get("/abilities")
|
||||
assert abilities_response.status_code == 200
|
||||
|
|
@ -303,6 +304,7 @@ def test_ui_register_analyze_and_approve_loop(tmp_path):
|
|||
search_response = client.get("/ui/search", params={"q": "repository"})
|
||||
assert search_response.status_code == 200
|
||||
assert "UI Repo" in search_response.text
|
||||
assert "Field" in search_response.text
|
||||
finally:
|
||||
app.dependency_overrides.clear()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue