diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-12 12:26:39 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-12 12:26:39 +0100 |
commit | 3f818f99669ab0b49f98b7e7da43c38dc119bfd5 (patch) | |
tree | 972a6603c46581495e5946bf6a1995eac9ddf4b7 /ctrack/register/tests/test_forms.py | |
parent | 7db4392801aca82d1dec6eb57abf7cb74c10689c (diff) |
another test added for CAFTwinDateEventForm
Diffstat (limited to 'ctrack/register/tests/test_forms.py')
-rw-r--r-- | ctrack/register/tests/test_forms.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/ctrack/register/tests/test_forms.py b/ctrack/register/tests/test_forms.py index 9dd7437..f1b8630 100644 --- a/ctrack/register/tests/test_forms.py +++ b/ctrack/register/tests/test_forms.py @@ -1,7 +1,7 @@ import pytest from django.db import IntegrityError -from ..forms import AddMeetingForm, CAFSingleDateEventForm +from ..forms import AddMeetingForm, CAFSingleDateEventForm, CAFTwinDateEventForm pytestmark = pytest.mark.django_db @@ -139,3 +139,18 @@ def test_can_register_two_send_to_rosa_events_on_same_day(user, caf): ) assert form1.is_valid() assert form2.is_valid() + + +def test_caf_twin_date_event(user, caf): + form = CAFTwinDateEventForm( + { + "type_descriptor": "CAF_PEER_REVIEW_PERIOD", + "related_caf": caf, + "short_description": "Test Description", + "start_date": "2009-10-01", + "end_date": "2015-10-1", + "comments": "Meaningless comments", + }, + user=user, + ) + assert form.is_valid() |