fix: include package data without "Last Packager"

Data for packages that do not have a "Last Packager"
(e.g. because the user account was deleted)
should still be available from the /rpc and metadata archives.

Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
moson-mo 2023-02-09 23:14:48 +01:00
parent 8d2e176c2f
commit 0c5b4721d6
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
8 changed files with 11 additions and 45 deletions

View file

@ -845,7 +845,7 @@ def test_rpc_msearch(client: TestClient, user: User, packages: list[Package]):
params.pop("arg")
response = request.get("/rpc", params=params)
data = response.json()
assert data.get("resultcount") == 1
assert data.get("resultcount") == 2
result = data.get("results")[0]
assert result.get("Name") == "big-chungus"