Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tests/version_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import surface_apps


def get_version():
def get_pyproject_version():
path = Path(__file__).resolve().parents[1] / "pyproject.toml"

with open(str(path), encoding="utf-8") as file:
Expand All @@ -43,7 +43,10 @@ def get_conda_recipe_version():


def test_version_is_consistent():
assert surface_apps.__version__ == get_version()
assert surface_apps.__version__ == get_pyproject_version()
normalized_conda_version = Version(get_conda_recipe_version())
normalized_version = Version(surface_apps.__version__)
assert normalized_conda_version == normalized_version


def test_conda_version_is_pep440():
Expand Down
Loading