Numbering tests

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-03-03 00:04:12 +01:00
parent 376b49db95
commit 22317d4322
No known key found for this signature in database
GPG Key ID: C0095B7870A4CCD3
14 changed files with 7 additions and 9 deletions

View File

@ -34,9 +34,9 @@ def test_lockout(device, resetdevice, client_pin):
pin_token = client_pin.get_pin_token(pin)
for i in range(1, 10):
err = CtapError.ERR.PIN_INVALID
if i in (3, 6):
err = CtapError.ERR.PIN_AUTH_BLOCKED
err = [CtapError.ERR.PIN_INVALID]
if 3 <= i <= 7:
err = [CtapError.ERR.PIN_AUTH_BLOCKED]
elif i >= 8:
err = [CtapError.ERR.PIN_BLOCKED, CtapError.ERR.PIN_INVALID]

View File

@ -180,5 +180,6 @@ def test_exclude_list_excluded(device):
assert e.value.code == CtapError.ERR.CREDENTIAL_EXCLUDED
def test_unknown_option(resetdevice):
resetdevice.MC(options={"unknown": False})
def test_unknown_option(device):
device.reset()
device.MC(options={"unknown": False})

View File

@ -126,10 +126,7 @@ def test_credprotect_optional_and_list_works_no_uv(device, MCCredProtectOptional
res1 = device.doGA(allow_list=allow_list)['res'].get_assertions()[0]
assert res1.number_of_credentials in (None, 2)
results = [res1]
if res1.number_of_credentials == 2:
res2 = device.GNA()['res']
results.append(res2)
results = device.doGA(allow_list=allow_list)['res'].get_assertions()
# the required credProtect is not returned.
for res in results: