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 5c8022f commit fc90a9dCopy full SHA for fc90a9d
rerun_py/tests/unit/test_version.py
@@ -1,10 +1,17 @@
1
from __future__ import annotations
2
3
+from pathlib import Path
4
+
5
import rerun as rr
6
import semver
7
+import tomli
8
9
10
def test_version() -> None:
11
+ cargo_toml_path = Path(__file__).parent.parent.parent.parent / "Cargo.toml"
12
+ cargo_toml = tomli.loads(cargo_toml_path.read_text())
13
+ assert rr.__version__ == cargo_toml["workspace"]["package"]["version"]
14
15
ver = semver.VersionInfo.parse(rr.__version__)
16
17
assert len(rr.__version_info__) == 4
tests/python/release_checklist/check_version.py
0 commit comments