Skip to content
Snippets Groups Projects
Verified Commit 21209413 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

test: fix tests broken, hack no longer needed

parent c2c3a9cc
No related branches found
No related tags found
No related merge requests found
Pipeline #3417 passed
...@@ -22,11 +22,7 @@ from program.tests.factories import ( ...@@ -22,11 +22,7 @@ from program.tests.factories import (
def assert_data(response, data) -> None: def assert_data(response, data) -> None:
if "schedule" in data: if "schedule" in data:
for key, value in data["schedule"].items(): for key, value in data["schedule"].items():
# this is ugly but for some reason assert response.data[key] == value
if key == "rrule_id" and "rrule" in response.data:
assert response.data["rrule"] == value
else:
assert str(response.data[key]) == value
else: else:
for key, value in data.items(): for key, value in data.items():
if key == "password": if key == "password":
......
...@@ -18,7 +18,7 @@ def host_data(image=None) -> dict[str, str | int]: ...@@ -18,7 +18,7 @@ def host_data(image=None) -> dict[str, str | int]:
} }
if image: if image:
data["image"] = image.id data["image_id"] = image.id
return data return data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment