diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-16 17:23:14 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-16 17:23:14 +0100 |
commit | 1c7d45e92f83263a202d2f72c9daac61d34619cd (patch) | |
tree | ad62f6f4bda17055d29e6bd36ace9c511f7fa29c /engagements/tests/test_forms.py | |
parent | 8946e0f171379078c5a2230f38cf47f245e9b841 (diff) |
wip: create assessment form
Diffstat (limited to 'engagements/tests/test_forms.py')
-rw-r--r-- | engagements/tests/test_forms.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/engagements/tests/test_forms.py b/engagements/tests/test_forms.py index deb0a29..436be34 100644 --- a/engagements/tests/test_forms.py +++ b/engagements/tests/test_forms.py @@ -1,7 +1,12 @@ import pytest from django.forms import DateInput, Select, SelectMultiple -from engagements.forms import EngagementCreateForm, EngagementEffortCreateForm, EngagementStrategyCreateForm +from engagements.forms import ( + EngagementCreateForm, + EngagementEffortCreateForm, + EngagementStrategyCreateForm, + AssessmentCreateForm, +) from engagements.models import EngagementType, RegulatoryCycle pytestmark = pytest.mark.django_db @@ -129,3 +134,8 @@ def test_create_engagement_strategy_form(org, user, regulatory_cycles): } form = EngagementStrategyCreateForm(data=form_data) assert form.is_valid() + + +def test_create_assessment_engagement_type_form(): + e_type = EngagementType(name="ASSESSMENT") + form = AssessmentCreateForm({"initial": e_type}) |