torchbox / tbxforms

A Torchbox-flavoured template pack for django-crispy-forms, adapted from crispy-forms-gds.
https://pypi.org/project/tbxforms/
BSD 2-Clause "Simplified" License
6 stars 5 forks source link

No tests for `form.conditional_fields_to_show_as_required()` #81

Open kbayliss opened 3 months ago

kbayliss commented 3 months ago

We have custom code that allows conditionally-required fields to show as required:

but this is not currently covered by snapshot tests.

We should add snapshot tests to confirm that each field can be shown as required by adding the fieldname to the conditional_fields_to_show_as_required() staticmethod.