Verified Commit 83ddbd22 authored by Kevin Morris's avatar Kevin Morris
Browse files

test: get /requests displays all requests, including those without a User

Signed-off-by: Kevin Morris's avatarKevin Morris <>
parent a629098b
Pipeline #27743 passed with stages
in 2 minutes and 47 seconds
......@@ -743,6 +743,22 @@ def test_requests(
assert len(rows) == 5 # There are five records left on the second page.
def test_requests_by_deleted_users(
client: TestClient, user: User, tu_user: User, pkgreq: PackageRequest
with db.begin():
cookies = {"AURSID": tu_user.login(Request(), "testPassword")}
with client as request:
resp = request.get("/requests", cookies=cookies)
assert resp.status_code == HTTPStatus.OK
root = parse_root(resp.text)
rows = root.xpath('//table[@class="results"]/tbody/tr')
assert len(rows) == 1
def test_requests_selfmade(
client: TestClient, user: User, requests: list[PackageRequest]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment