mirror of
https://github.com/trussed-dev/fido2-tests.git
synced 2026-06-20 04:16:30 -07:00
15 lines
446 B
Python
15 lines
446 B
Python
import sys
|
|
import pytest
|
|
from fido2.ctap import CtapError
|
|
|
|
from tests.utils import *
|
|
|
|
|
|
@pytest.mark.skipif('trezor' in sys.argv, reason="Trezor does not invalidate server-resident credentials.")
|
|
def test_credential_resets(device, MCRes, GARes):
|
|
verify(MCRes, GARes)
|
|
device.reset()
|
|
with pytest.raises(CtapError) as e:
|
|
new_auth = device.sendGA(*FidoRequest(GARes).toGA())
|
|
assert e.value.code == CtapError.ERR.NO_CREDENTIALS
|