Fix tests
This commit is contained in:
@@ -5,7 +5,7 @@ from webapp.utils import month_from_now
|
||||
|
||||
def createEventObject(
|
||||
name="Testitapahtuma1",
|
||||
visible=True,
|
||||
isPublished=True,
|
||||
start_time=timezone.now(),
|
||||
end_time=month_from_now(),
|
||||
tag_id=[],
|
||||
@@ -14,7 +14,7 @@ def createEventObject(
|
||||
return Event.objects.create(
|
||||
title_fi=name,
|
||||
title_en=f"title_en {name}",
|
||||
visible=visible,
|
||||
isPublished=isPublished,
|
||||
description_fi=f"desc_fi {name}",
|
||||
description_en=f"desc_en {name}",
|
||||
content_fi=f"content_fi {name}",
|
||||
@@ -27,15 +27,15 @@ def createEventObject(
|
||||
|
||||
def createEventJSON(
|
||||
name="POST1",
|
||||
visible=True,
|
||||
isPublished=True,
|
||||
start_time=timezone.now(),
|
||||
end_time=month_from_now(),
|
||||
tag_id=[],
|
||||
tagId=[],
|
||||
signup_id=[],
|
||||
):
|
||||
return {
|
||||
"tag_id": tag_id,
|
||||
"visible": visible,
|
||||
"tagId": tagId,
|
||||
"visible": isPublished,
|
||||
"title_fi": f"title_fi {name}",
|
||||
"title_en": f"title_en {name}",
|
||||
"description_fi": f"desc_fi {name}",
|
||||
|
||||
Reference in New Issue
Block a user