============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-9.0.3, pluggy-1.6.0
rootdir: /workspace/pyjwt
configfile: tox.ini
plugins: metadata-3.1.1, anyio-4.13.0, cov-7.1.0, json-report-1.5.0
collected 262 items

tests/test_advisory.py .                                                 [  0%]
tests/test_algorithms.py ............................................... [ 18%]
........F.....................                                           [ 29%]
tests/test_api_jwk.py ............s......                                [ 37%]
tests/test_api_jws.py ..................................s............... [ 56%]
.....................                                                    [ 64%]
tests/test_api_jwt.py .................................................. [ 83%]
.........                                                                [ 86%]
tests/test_compressed_jwt.py .                                           [ 87%]
tests/test_exceptions.py .                                               [ 87%]
tests/test_jwks_client.py ....................                           [ 95%]
tests/test_jwt.py .                                                      [ 95%]
tests/test_utils.py .....x......                                         [100%]

=================================== FAILURES ===================================
_ TestAlgorithmsRFC7520.test_rsapss_verify_should_return_true_for_test_vector __

self = <tests.test_algorithms.TestAlgorithmsRFC7520 object at 0x79f01676bd90>

    @crypto_required
    def test_rsapss_verify_should_return_true_for_test_vector(self):
        """
        This test verifies that RSA-PSS verification works with a known good
        signature and key.
    
        Reference: https://tools.ietf.org/html/rfc7520#section-4.2
        """
        signing_input = (
            b"eyJhbGciOiJQUzM4NCIsImtpZCI6ImJpbGJvLmJhZ2dpbnNAaG9iYml0b24uZXhhb"
            b"XBsZSJ9.SXTigJlzIGEgZGFuZ2Vyb3VzIGJ1c2luZXNzLCBGcm9kbywgZ29pbmcgb"
            b"3V0IHlvdXIgZG9vci4gWW91IHN0ZXAgb250byB0aGUgcm9hZCwgYW5kIGlmIHlvdS"
            b"Bkb24ndCBrZWVwIHlvdXIgZmVldCwgdGhlcmXigJlzIG5vIGtub3dpbmcgd2hlcmU"
            b"geW91IG1pZ2h0IGJlIHN3ZXB0IG9mZiB0by4"
        )
    
        signature = base64url_decode(
            b"cu22eBqkYDKgIlTpzDXGvaFfz6WGoz7fUDcfT0kkOy42miAh2qyBzk1xEsnk2IpN6"
            b"-tPid6VrklHkqsGqDqHCdP6O8TTB5dDDItllVo6_1OLPpcbUrhiUSMxbbXUvdvWXz"
            b"g-UD8biiReQFlfz28zGWVsdiNAUf8ZnyPEgVFn442ZdNqiVJRmBqrYRXe8P_ijQ7p"
            b"8Vdz0TTrxUeT3lm8d9shnr2lfJT8ImUjvAA2Xez2Mlp8cBE5awDzT0qI0n6uiP1aC"
            b"N_2_jLAeQTlqRHtfa64QQSUmFAAjVKPbByi7xho0uTOcbH510a6GYmJUAfmWjwZ6o"
            b"D4ifKo8DYM-X72Eaw"
        )
    
        algo = RSAPSSAlgorithm(RSAPSSAlgorithm.SHA384)
        key = cast(RSAPublicKey, algo.prepare_key(load_rsa_pub_key()))
    
        result = algo.verify(signing_input, key, signature)
>       assert result
E       assert False

tests/test_algorithms.py:766: AssertionError
--------------------------------- JSON report ----------------------------------
report saved to: report.json
=========================== short test summary info ============================
SKIPPED [1] tests/test_api_jwk.py:200: Requires cryptography library not installed
SKIPPED [1] tests/test_api_jws.py:387: Requires cryptography library not installed
XFAIL tests/test_utils.py::test_to_base64url_uint[-1-]
FAILED tests/test_algorithms.py::TestAlgorithmsRFC7520::test_rsapss_verify_should_return_true_for_test_vector
============= 1 failed, 258 passed, 2 skipped, 1 xfailed in 5.33s ==============