Skip to content

[tests] replace hardcoded version strings with __version__ import#3

Merged
Atrv-Shrn merged 1 commit into
feat/integrationfrom
feat/version-assertions
May 14, 2026
Merged

[tests] replace hardcoded version strings with __version__ import#3
Atrv-Shrn merged 1 commit into
feat/integrationfrom
feat/version-assertions

Conversation

@Atrv-Shrn
Copy link
Copy Markdown
Owner

Summary

  • Replace 6 hardcoded "1.4.3" version assertions with __version__ import from memstack
  • Rename 2 stale test methods: test_health_version_is_1_4_2test_health_version_matches_package, test_mcp_server_version_is_1_4_2test_mcp_server_version_matches_package

Files changed

  • tests/test_cli.py — add __version__ import, replace 1 hardcoded assertion
  • tests/test_routes_health.py — add __version__ import, replace 3 hardcoded assertions, rename method
  • tests/test_mcp_server.py — replace 2 hardcoded assertions, rename method (already had __version__ import)

Verification

  • git grep '"1\.4\.[0-3]"' -- tests/ returns zero
  • All 6 version assertions use __version__
  • Both renamed methods have generic names (no version number)
  • python -m pytest tests/test_cli.py tests/test_routes_health.py tests/test_mcp_server.py -v — 104 passed
  • ruff check and ruff format --check clean

Known limitations

None — this is a pure test refactoring with no behavioral change.

🤖 Generated with Claude Code

6 hardcoded "1.4.3" assertions replaced with __version__ from memstack.
Renamed test_health_version_is_1_4_2 → test_health_version_matches_package
and test_mcp_server_version_is_1_4_2 → test_mcp_server_version_matches_package.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Atrv-Shrn Atrv-Shrn merged commit db5219c into feat/integration May 14, 2026
@Atrv-Shrn Atrv-Shrn deleted the feat/version-assertions branch May 14, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant