diff options
Diffstat (limited to 'ctrack/register/tests')
-rw-r--r-- | ctrack/register/tests/test_forms.py | 4 | ||||
-rw-r--r-- | ctrack/register/tests/test_views.py | 1 |
2 files changed, 3 insertions, 2 deletions
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 |