mirror of
https://github.com/lucaspalomodevelop/eventcally.git
synced 2026-03-13 00:07:22 +00:00
Increase max event duration #231
This commit is contained in:
parent
55fc0a5212
commit
3e66fb33e9
@ -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)
|
||||
|
||||
@ -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,
|
||||
},
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user