mirror of
https://github.com/trussed-dev/fido2-tests.git
synced 2026-06-20 04:16:30 -07:00
18 lines
425 B
Python
18 lines
425 B
Python
import time
|
|
|
|
import pytest
|
|
from fido2.ctap import CtapError
|
|
from tests.utils import DeviceSelectCredential
|
|
import tests
|
|
|
|
|
|
def test_reset(device):
|
|
device.reset()
|
|
|
|
def test_reset_window(device):
|
|
print("Waiting 11s before sending reset...")
|
|
time.sleep(11)
|
|
with pytest.raises(CtapError) as e:
|
|
device.ctap2.reset(on_keepalive=DeviceSelectCredential(1))
|
|
assert e.value.code == CtapError.ERR.NOT_ALLOWED
|