Skip to content

Commit d8833a4

Browse files
committed
change the test
1 parent f80f916 commit d8833a4

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

tests/test_common_calls.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os
44

55
import bittensor as bt
6-
import tomli
76
from scalecodec.base import ScaleBytes
87
from substrateinterface.keypair import Keypair as SKeypair
98

@@ -28,13 +27,6 @@
2827
)
2928

3029

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-
3830
def test_common_calls():
3931
"""Tests for Keypair."""
4032
kps = SKeypair.create_from_mnemonic(
@@ -289,5 +281,5 @@ def test_config_parsing():
289281

290282

291283
def test__version__():
292-
"""Test version."""
293-
assert __version__ == get_cargo_version()
284+
"""Test version is provided."""
285+
assert __version__

0 commit comments

Comments
 (0)