Fix change_accessauth() not changing timetables
Also fix the test not actually checking the response :/
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user