mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
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:
committed by
Raphael Michel
parent
2ffb4edee9
commit
ff98ae3200
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user