MCPcopy
hub / github.com/authlib/authlib / test_init_algorithms

Function test_init_algorithms

tests/jose/test_jwt.py:14–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def test_init_algorithms():
15 _jwt = JsonWebToken(["RS256"])
16 with pytest.raises(UnsupportedAlgorithmError):
17 _jwt.encode({"alg": "HS256"}, {}, "k")
18
19 _jwt = JsonWebToken("RS256")
20 with pytest.raises(UnsupportedAlgorithmError):
21 _jwt.encode({"alg": "HS256"}, {}, "k")
22
23
24def test_encode_sensitive_data():

Callers

nothing calls this directly

Calls 2

encodeMethod · 0.95
JsonWebTokenClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…