Skip to content

Commit

Permalink
Fix test bad pub type.
Browse files Browse the repository at this point in the history
Signed-off-by: Pol Henarejos <[email protected]>
  • Loading branch information
polhenarejos committed Jun 29, 2024
1 parent 54bbc0e commit d5fe405
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/pico-fido/test_020_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}])
Expand Down

0 comments on commit d5fe405

Please sign in to comment.