diff options
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}) |