Skip to content

Refactor/improve THP device tests #6286

@M1nd3r

Description

@M1nd3r

Tests in test/device_tests/thp/ are in need of refactoring and improvements. It would be nice to improve the test infrastructure/setup - to have a way to create a DebugClient or DebugSession in specific pairing state, with specific pairing path (CodeEntry/Nfc/Qr Code), or to be able to create/get valid pairing credentials more easily.

Additionally, add tests for more "code branches" - e.g. branches that result in DataError during pairing. See #6284 for branches overview and test examples.

Note: this can be fixed, too: #6284 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    T3W1Trezor Safe 7codeCode improvementsgood first issueIssue for newbie developers who want to participatetrezorlibPython library and the command line trezorctl tool.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions