We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e12d5c4 + 052f8fb commit 4d9d7adCopy full SHA for 4d9d7ad
tests/test_version_cmd.py
@@ -1,11 +1,12 @@
1
+from pathlib import Path
2
import tomli
3
from application_client.boilerplate_command_sender import BoilerplateCommandSender
4
from application_client.boilerplate_response_unpacker import unpack_get_version_response
5
6
# In this test we check the behavior of the device when asked to provide the app version
7
def test_version(backend):
-
8
- with open("Cargo.toml", "rb") as f:
+
9
+ with open(Path(__file__).parent.parent / "Cargo.toml", "rb") as f:
10
data = tomli.load(f)
11
version = tuple(map(int, data['package']['version'].split('.')))
12
# Use the app interface instead of raw interface
0 commit comments