From d5fe405a878075162afe2449325cffcface7b5da Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Sun, 30 Jun 2024 00:32:40 +0200 Subject: [PATCH] Fix test bad pub type. Signed-off-by: Pol Henarejos --- tests/pico-fido/test_020_register.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/pico-fido/test_020_register.py b/tests/pico-fido/test_020_register.py index 3a80e7d..bbb2dd1 100644 --- a/tests/pico-fido/test_020_register.py +++ b/tests/pico-fido/test_020_register.py @@ -147,6 +147,8 @@ def test_bad_type_pubKeyCredParams_alg(device): with pytest.raises(CtapError) as e: device.doMC(key_params=[{"alg": "7", "type": "public-key"}]) + assert e.value.code == CtapError.ERR.CBOR_UNEXPECTED_TYPE + def test_unsupported_algorithm(device): with pytest.raises(CtapError) as e: device.doMC(key_params=[{"alg": 1337, "type": "public-key"}])