Fix change_accessauth() not changing timetables

Also fix the test not actually checking the response :/
This commit is contained in:
2026-05-23 18:05:10 +02:00
parent 3d1893d84e
commit 5a6cd970dd
2 changed files with 11 additions and 1 deletions

View File

@@ -147,6 +147,11 @@ def test_update_access_auth_with_timetables(client, auth_headers, test_aa):
headers=auth_headers
)
assert response.status_code == 200
jresponse = response.json()
assert len(jresponse["timetables"]) == 1
assert jresponse["timetables"][0]["weekday"] == 5
assert jresponse["timetables"][0]["starttime"] == "10:00:00"
assert jresponse["timetables"][0]["duration"] == 120
def test_update_nonexistent_access_auth(client, auth_headers):