Skip to content

Commit 4d9d7ad

Browse files
Merge pull request #126 from LedgerHQ/cev/fix_test_version
Fix Cargo.toml path for pytest
2 parents e12d5c4 + 052f8fb commit 4d9d7ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_version_cmd.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
from pathlib import Path
12
import tomli
23
from application_client.boilerplate_command_sender import BoilerplateCommandSender
34
from application_client.boilerplate_response_unpacker import unpack_get_version_response
45

56
# In this test we check the behavior of the device when asked to provide the app version
67
def test_version(backend):
7-
8-
with open("Cargo.toml", "rb") as f:
8+
9+
with open(Path(__file__).parent.parent / "Cargo.toml", "rb") as f:
910
data = tomli.load(f)
1011
version = tuple(map(int, data['package']['version'].split('.')))
1112
# Use the app interface instead of raw interface

0 commit comments

Comments
 (0)