[Fixed]-Django Test request.method == 'POST' not working

1👍

Your test isn’t sending a post. You should use the RequestFactory rather than instantiating HttpRequest directly. Or even better, use the built in test client.

Leave a comment