Skip to content

Commit

Permalink
test(utils): improve version testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkasa committed Nov 25, 2024
1 parent ef83b6f commit ba0e17e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_utility.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import subprocess # noqa: S404
from datetime import date, datetime, timezone
from pathlib import Path

Expand All @@ -15,6 +16,15 @@ def test_version():

assert __version__ == pyversion

git_tag = subprocess.run( # noqa: S603
["git", "describe", "--abbrev=0", "--tags"], # noqa: S607
stdout=subprocess.PIPE,
check=True,
text=True,
).stdout.strip()[1:]

assert __version__ == git_tag


@pytest.mark.unit
def test_format_iso():
Expand Down

0 comments on commit ba0e17e

Please sign in to comment.