Skip to content

Commit 6d20502

Browse files
committed
fix: use dynamic __version__ in test_version instead of hardcoded string
1 parent 3343960 commit 6d20502

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from typer.testing import CliRunner
44

5+
from ossguard import __version__
56
from ossguard.cli import app
67

78
runner = CliRunner()
@@ -92,4 +93,4 @@ class TestVersionCommand:
9293
def test_version(self):
9394
result = runner.invoke(app, ["version"])
9495
assert result.exit_code == 0
95-
assert "0.1.0" in result.output
96+
assert __version__ in result.output

0 commit comments

Comments
 (0)