Django Class-based view pass custom request

You’re almost there. as_view() creates the functional view version of the CBV that can be handed a request:

class NewListViewUnitTest(unittest.TestCase):
    # ...
    def test_passes_POST_data_to_NewListForm(self, mockNewListForm):

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top