-
-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[no changelog]
- Loading branch information
Showing
3 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# This file is part of the Trezor project. | ||
# | ||
# Copyright (C) 2012-2024 SatoshiLabs and contributors | ||
# | ||
# This library is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Lesser General Public License version 3 | ||
# as published by the Free Software Foundation. | ||
# | ||
# This library is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Lesser General Public License for more details. | ||
# | ||
# You should have received a copy of the License along with this library. | ||
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>. | ||
|
||
import pytest | ||
|
||
from trezorlib import device | ||
from trezorlib.debuglink import TrezorClientDebugLink as Client | ||
|
||
from ..input_flows import InputFlowTutorial | ||
|
||
|
||
# TODO not initialized? | ||
@pytest.mark.setup_client(uninitialized=True) | ||
@pytest.mark.skip_t1b1 | ||
@pytest.mark.skip_t2b1 | ||
@pytest.mark.skip_t2t1 | ||
@pytest.mark.parametrize("cancel", (True, False)) | ||
def test_tutorial_t3t1(client: Client, cancel: bool): | ||
with client: | ||
IF = InputFlowTutorial(client, cancel=cancel) | ||
client.set_input_flow(IF.get()) | ||
device.show_device_tutorial(client) | ||
|
||
assert client.features.initialized is False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters