I would like to fake request parameters for unit testing. How can I achieve this in Flask?
I still had issue with this when testing post form data for logging in this worked for me.
def login(self, username, password):
return self.app.post('/', data='Client_id=' + username +'&Password=' + password,
follow_redirects=True,content_type='application/x-www-form-urlencoded')
I found this is out this way.
Chrome: Developer mode --> Doc --> HTML doc that was requested --> Headers Tab --> Form data --> view source