From d4e6e7b3c8f10c6671cecea2c2ca42578678eb4a Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 21 Oct 2020 14:49:36 +0100 Subject: can now add caf single date events to caf detail page --- ctrack/register/tests/test_forms.py | 4 ++-- ctrack/register/tests/test_views.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'ctrack/register/tests') diff --git a/ctrack/register/tests/test_forms.py b/ctrack/register/tests/test_forms.py index 1ba1cf9..4a9e818 100644 --- a/ctrack/register/tests/test_forms.py +++ b/ctrack/register/tests/test_forms.py @@ -137,7 +137,7 @@ def test_create_note(user, org_with_people): "CAF_VALIDATION_RECORD_EMAILED_TO_OES", ], ) -def test_allowable_caf_single_date_event_forms(allowed_type, user, caf): +def test_caf_single_date_event_forms(allowed_type, user, caf): form = CAFSingleDateEventForm( { "type_descriptor": allowed_type, @@ -146,7 +146,7 @@ def test_allowable_caf_single_date_event_forms(allowed_type, user, caf): "date": "2010-07-01", "comments": "Meaningless comments", }, - user=user, + user=user, caf_id=caf.id ) assert form.is_valid() diff --git a/ctrack/register/tests/test_views.py b/ctrack/register/tests/test_views.py index 0876332..4e8152c 100644 --- a/ctrack/register/tests/test_views.py +++ b/ctrack/register/tests/test_views.py @@ -203,3 +203,4 @@ class TestSingleDateCAFEventViews: f"Register a single date event for {caf.version} ({caf.organisation.name})", html, ) + assert "Related caf" not in html -- cgit v1.2.3