From 4db641bd06bf603a1dc0e25fd536b47a7c3252a9 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Thu, 27 Mar 2025 14:18:29 +0100 Subject: [PATCH] fixup! chore(tests): adapt testing framework to session based --- tests/input_flows.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/input_flows.py b/tests/input_flows.py index 5a1bd9bf10..90a3080902 100644 --- a/tests/input_flows.py +++ b/tests/input_flows.py @@ -646,12 +646,13 @@ class InputFlowShowMultisigXPUBs(InputFlowBase): class InputFlowShowXpubQRCode(InputFlowBase): - def __init__(self, client: Client, passphrase: bool = False): + + def __init__(self, client: Client, passphrase_request_expected: bool = False): super().__init__(client) - self.passphrase = passphrase + self.passphrase_request_expected = passphrase_request_expected def input_flow_bolt(self) -> BRGeneratorType: - if self.passphrase: + if self.passphrase_request_expected: yield self.debug.press_yes() yield @@ -678,7 +679,7 @@ class InputFlowShowXpubQRCode(InputFlowBase): self.debug.press_yes() def input_flow_caesar(self) -> BRGeneratorType: - if self.passphrase: + if self.passphrase_request_expected: yield self.debug.press_right() yield @@ -705,7 +706,7 @@ class InputFlowShowXpubQRCode(InputFlowBase): self.debug.press_middle() def input_flow_delizia(self) -> BRGeneratorType: - if self.passphrase: + if self.passphrase_request_expected: yield self.debug.press_yes() yield