mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-10-14 09:02:15 +00:00
return description from the search
This commit is contained in:
1 parent
d19deb57e7
commit
117e69c906
3 files changed
+13
-5
No files matched your search
@@ -12,7 +12,8 @@ async def test_get(client: TestClient, aur_package_ahriman: aur.Package, mocker:
|
||||
response = await client.get("/service-api/v1/search", params={"for": "ahriman"})
|
||||
|
||||
assert response.ok
|
||||
assert await response.json() == ["ahriman"]
|
||||
assert await response.json() == [{"package": aur_package_ahriman.package_base,
|
||||
"description": aur_package_ahriman.description}]
|
||||
|
||||
|
||||
async def test_get_exception(client: TestClient, mocker: MockerFixture) -> None:
|
||||
|
||||
Reference in new issue
Block a user