Increase max event duration #231

This commit is contained in:
Daniel Grams 2021-07-22 22:21:30 +02:00
parent 55fc0a5212
commit 3e66fb33e9
2 changed files with 4 additions and 4 deletions

View File

@ -237,7 +237,7 @@ def test_put_startAfterEnd(client, seeder, utils, app):
utils.assert_response_bad_request(response)
def test_put_durationMoreThan24Hours(client, seeder, utils, app):
def test_put_durationMoreThanMaxAllowedDuration(client, seeder, utils, app):
user_id, admin_unit_id = seeder.setup_api_access()
event_id = seeder.create_event(admin_unit_id)
place_id = seeder.upsert_default_event_place(admin_unit_id)
@ -245,7 +245,7 @@ def test_put_durationMoreThan24Hours(client, seeder, utils, app):
put = create_put(place_id, organizer_id)
put["start"] = "2021-02-07T11:00:00.000Z"
put["end"] = "2021-02-08T11:01:00.000Z"
put["end"] = "2021-02-21T11:01:00.000Z"
url = utils.get_url("api_v1_event", id=event_id)
response = utils.put_json(url, put)

View File

@ -202,7 +202,7 @@ def test_create_startAfterEnd(client, app, utils, seeder, mocker):
)
def test_create_durationMoreThan24Hours(client, app, utils, seeder, mocker):
def test_create_durationMoreThanMaxAllowedDuration(client, app, utils, seeder, mocker):
user_id, admin_unit_id = seeder.setup_base()
place_id = seeder.upsert_default_event_place(admin_unit_id)
@ -215,7 +215,7 @@ def test_create_durationMoreThan24Hours(client, app, utils, seeder, mocker):
{
"name": "Name",
"start": ["2030-12-30", "12", "00"],
"end": ["2030-12-31", "12", "01"],
"end": ["2031-01-13", "12", "01"],
"event_place_id": place_id,
},
)