Django - Testing Django Applications
Which of the following is the correct way to instantiate a Django form with POST data in a test?
data keyword argument.form = MyForm(data={'name': 'Alice'}) correctly passes POST data as a dictionary.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions