We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3729d96 commit 6ea6da9Copy full SHA for 6ea6da9
tests/test_smoke.py
@@ -2,6 +2,8 @@
2
3
import io
4
import json
5
+import re
6
+from pathlib import Path
7
8
import iscc_lib
9
from iscc_lib import (
@@ -19,9 +21,13 @@
19
21
20
22
def test_version_exists_and_correct():
23
"""Verify __version__ is a string matching the workspace version."""
24
+ cargo_toml = Path(__file__).resolve().parent.parent / "Cargo.toml"
25
+ match = re.search(r'^version\s*=\s*"(.+?)"', cargo_toml.read_text(), re.MULTILINE)
26
+ assert match is not None, "version not found in Cargo.toml"
27
+ expected = match.group(1)
28
assert hasattr(iscc_lib, "__version__")
29
assert isinstance(iscc_lib.__version__, str)
- assert iscc_lib.__version__ == "0.0.1"
30
+ assert iscc_lib.__version__ == expected
31
32
33
def test_version_in_all():
0 commit comments