flask-testing

How to set request args with Flask test_client?

How to set request args with Flask test_client? Question: I have to test out a certain view that gets certain information from request.args. I can’t mock this since a lot of stuff in the view uses the request object. The only alternative I can think of is to manually set request.args. I can do that …

Total answers: 1