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.
1 parent f80f916 commit d8833a4Copy full SHA for d8833a4
tests/test_common_calls.py
@@ -3,7 +3,6 @@
3
import os
4
5
import bittensor as bt
6
-import tomli
7
from scalecodec.base import ScaleBytes
8
from substrateinterface.keypair import Keypair as SKeypair
9
@@ -28,13 +27,6 @@
28
27
)
29
30
31
-def get_cargo_version() -> str:
32
- cargo_path = os.path.join("..", "Cargo.toml")
33
- with open(cargo_path, "rb") as f:
34
- data = tomli.load(f)
35
- return data["package"]["version"]
36
-
37
38
def test_common_calls():
39
"""Tests for Keypair."""
40
kps = SKeypair.create_from_mnemonic(
@@ -289,5 +281,5 @@ def test_config_parsing():
289
281
290
282
291
283
def test__version__():
292
- """Test version."""
293
- assert __version__ == get_cargo_version()
284
+ """Test version is provided."""
285
+ assert __version__
0 commit comments