Skip to content

Commit 7a7e289

Browse files
Fix test_version to use dynamic version instead of hardcoded string
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4010798 commit 7a7e289

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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 soup_cli import __version__
56
from soup_cli.cli import app
67

78
runner = CliRunner()
@@ -10,7 +11,7 @@
1011
def test_version():
1112
result = runner.invoke(app, ["version"])
1213
assert result.exit_code == 0
13-
assert "0.2.0" in result.output
14+
assert __version__ in result.output
1415

1516

1617
def test_help():

0 commit comments

Comments
 (0)