Update oauthlib to ==3.1.* (#1538)

* Bumped oauthlib to ==3.1.*

* Fix tests for oauthlib 3.1

In some cases, oauthlib now returns 400 instead of 401.
This commit is contained in:
Katharina Bogad
2020-01-02 13:15:24 +01:00
committed by Raphael Michel
parent 2ffb4edee9
commit ff98ae3200
3 changed files with 5 additions and 5 deletions

View File

@@ -478,7 +478,7 @@ def test_token_revoke_refresh_token(client, admin_user, organizer, application:
'grant_type': 'refresh_token',
}, HTTP_AUTHORIZATION='Basic ' + base64.b64encode(
('%s:%s' % (application.client_id, application.client_secret)).encode()).decode())
assert resp.status_code == 401
assert resp.status_code == 400
@pytest.mark.django_db
@@ -573,4 +573,4 @@ def test_user_revoke(client, admin_user, organizer, application: OAuthApplicatio
'grant_type': 'refresh_token',
}, HTTP_AUTHORIZATION='Basic ' + base64.b64encode(
('%s:%s' % (application.client_id, application.client_secret)).encode()).decode())
assert resp.status_code == 401
assert resp.status_code == 400