Testing a complex multipart custom django form

I have 2 complex custom form classes; each class contain several subforms (model form, formset and sometimes nested formset). I have written tests for both of them : tests of the form methods (init, full_clean, is_valid) using post data.

I am looking for a way to test the creation of the form with the renderer.

In the view tests, using request factory, the form is created but the forms within the formset are not created.

When I do manual testing of the form with the test server, I encounter some errors that are notcovered by my tests

Вернуться на верх