Skip to content

Use hardware capabilities in tests #21

@prusnak

Description

@prusnak

Let's replace code like this:

https://github.com/solokeys/fido2-tests/blob/2cc35f10cf4c1aa5be103d27d88397176a483ba9/tests/standard/fido2/test_resident_key.py#L180-L181

with something saner such as

@pytest.mark.skip_has_display
@pytest.mark.skip_truncates_displayName

This would also require defining a capability list for each supported hardware such as

capabilities = {
    'trezor': ['has_display'],
    'solokeys': ['truncates_displayName'],
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions