Skip to content

Commit 2cbb1f9

Browse files
JonZeollaclaude
andcommitted
fix: use dynamic version in test_main_as_script_version
Import __version__ from the package instead of hardcoding "0.0.0" so the test doesn't break after a release increments the version. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dee1672 commit 2cbb1f9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • {{cookiecutter.project_name|replace(" ", "")}}/tests

{{cookiecutter.project_name|replace(" ", "")}}/tests/test_main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,7 @@ def test_main_as_script_version():
6565
text=True,
6666
)
6767

68+
from {{ cookiecutter.project_slug }} import __version__
69+
6870
assert result.returncode == 0
69-
assert "0.0.0" in result.stdout
71+
assert __version__ in result.stdout

0 commit comments

Comments
 (0)