Fix xAuth test

This commit is contained in:
Evan Cordell 2017-03-27 10:51:50 -04:00
parent abd78bce56
commit 4c94d2c760

View file

@ -384,8 +384,7 @@ class OAuthTestCase(EndpointTestCase):
app.config['DIRECT_OAUTH_CLIENTID_WHITELIST'] = ['deadbeef']
headers = dict(authorization='Basic ' + base64.b64encode('devtable:password'))
resp = self.postResponse('web.authorize_application', headers=headers, form=form,
with_csrf=True, expected_code=302)
resp = self.postResponse('web.authorize_application', headers=headers, form=form, with_csrf=False, expected_code=302)
self.assertTrue('access_token=' in resp.headers['Location'])
def test_authorize_nocsrf_ratelimiting(self):