Flask - Testing Flask Applications
You wrote this test code but get a 405 Method Not Allowed error. What is the likely cause?
response = client.get('/submit', data={'name': 'Bob'})response = client.get('/submit', data={'name': 'Bob'})client.get() with data, which is invalid if the route expects POST.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions