From e3b036456f107b5b38e0186cc2f34fa0ee642694 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Sun, 2 Oct 2022 00:54:38 +0200 Subject: [PATCH] One more test Signed-off-by: Pol Henarejos --- tests/pico-fido/test_authenticate.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/pico-fido/test_authenticate.py b/tests/pico-fido/test_authenticate.py index 1e5d23c..090eeeb 100644 --- a/tests/pico-fido/test_authenticate.py +++ b/tests/pico-fido/test_authenticate.py @@ -187,3 +187,8 @@ def test_user_presence_option_false(device, MCRes): {"id": MCRes.auth_data.credential_data.credential_id, "type": "public-key"} ]) +def test_credential_resets(device, MCRes, GARes): + device.reset() + with pytest.raises(CtapError) as e: + new_auth = device.doGA() + assert e.value.code == CtapError.ERR.NO_CREDENTIALS