Skip to content

Commit 9143ddf

Browse files
committed
Amend tests to not consider colon in basic auth as invalid
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent a4bc090 commit 9143ddf

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

tests/test_server_17_client_authn.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,6 @@ def test_basic_auth_wrong_label():
459459

460460

461461
def test_basic_auth_wrong_token():
462-
_token = "{}:{}:foo".format(client_id, client_secret)
463-
token = as_unicode(base64.b64encode(as_bytes(_token)))
464-
with pytest.raises(ValueError):
465-
basic_authn("Basic {}".format(token))
466-
467462
_token = "{}:{}".format(client_id, client_secret)
468463
with pytest.raises(ValueError):
469464
basic_authn("Basic {}".format(_token))

tests/test_server_20d_client_authn.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -413,11 +413,6 @@ def test_basic_auth_wrong_label():
413413

414414

415415
def test_basic_auth_wrong_token():
416-
_token = "{}:{}:foo".format(client_id, client_secret)
417-
token = as_unicode(base64.b64encode(as_bytes(_token)))
418-
with pytest.raises(ValueError):
419-
basic_authn("Basic {}".format(token))
420-
421416
_token = "{}:{}".format(client_id, client_secret)
422417
with pytest.raises(ValueError):
423418
basic_authn("Basic {}".format(_token))

0 commit comments

Comments
 (0)