MCPcopy Create free account
hub / github.com/mpdavis/python-jose / TestFirebase

Class TestFirebase

tests/test_firebase.py:25–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24@pytest.mark.skipif(RSAKey is RsaRSAKey, reason="python-rsa backend does not support certificates")
25class TestFirebase:
26 def test_individual_cert(self):
27 jwt.decode(
28 firebase_token,
29 firebase_certs["f4b0a5c73ad85a5da09f0e7f76463631339e0bbf"],
30 algorithms="RS256",
31 options={"verify_exp": False, "verify_aud": False},
32 )
33
34 def test_certs_dict(self):
35 jwt.decode(
36 firebase_token, firebase_certs, algorithms="RS256", options={"verify_exp": False, "verify_aud": False}
37 )
38
39 def test_certs_string(self):
40 certs = json.dumps(firebase_certs)
41 jwt.decode(firebase_token, certs, algorithms="RS256", options={"verify_exp": False, "verify_aud": False})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…