Skip to content

Commit

Permalink
[py] do not test for virtual authentication properties
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Sep 23, 2023
1 parent 5ab7dfa commit 488b96a
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,17 +242,10 @@ def test_get_credentials(driver, pages):

assert credential1.is_resident_credential, "Credential1 should be resident credential"
assert credential1.private_key is not None, "Credential1 should have private key"
assert credential1.rp_id == "localhost"
assert credential1.user_handle == urlsafe_b64encode(bytearray({1})).decode()
assert credential1.sign_count == 1

assert credential2.is_resident_credential is False, "Credential2 should not be resident credential"
assert credential2.private_key is not None, "Credential2 should have private key"
# Non-resident credentials don't save RP ID
assert credential2.rp_id is None, "Credential2 should not have RP ID. Since it's not resident credential"
assert (
credential2.user_handle is None
), "Credential2 should not have user handle. Since it's not resident credential"

assert credential2.sign_count == 1

driver.remove_virtual_authenticator()
Expand Down

0 comments on commit 488b96a

Please sign in to comment.