mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-31 05:06:41 +00:00
tests: fix query
This commit is contained in:
parent
98eef8d08e
commit
eda5923cc6
|
@ -109,6 +109,20 @@ mutation CollectGarbage {
|
|||
success
|
||||
message
|
||||
code
|
||||
job {
|
||||
uid,
|
||||
typeId,
|
||||
name,
|
||||
description,
|
||||
status,
|
||||
statusText,
|
||||
progress,
|
||||
createdAt,
|
||||
updatedAt,
|
||||
finishedAt,
|
||||
error,
|
||||
result,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -128,3 +142,5 @@ def test_graphql_nix_collect_garbage(authorized_client):
|
|||
assert response.json()["data"]["system"]["nixCollectGarbage"]["message"] is not None
|
||||
assert response.json()["data"]["system"]["nixCollectGarbage"]["success"] is True
|
||||
assert response.json()["data"]["system"]["nixCollectGarbage"]["code"] == 200
|
||||
|
||||
assert response.json()["data"]["system"]["nixCollectGarbage"]["job"] is not None
|
||||
|
|
Loading…
Reference in a new issue