Skip to content

fix: Update computation module tests for country_id parameter#92

Merged
anth-volk merged 1 commit intoapp-v2-migrationfrom
fix/computation-module-tests
Mar 3, 2026
Merged

fix: Update computation module tests for country_id parameter#92
anth-volk merged 1 commit intoapp-v2-migrationfrom
fix/computation-module-tests

Conversation

@SakshiKekre
Copy link
Contributor

Summary

  • Updates test_computation_modules.py to handle the new country_id parameter added to computation module functions
  • The computation module functions now include a 7th parameter for country_id (passed as kwarg by run_modules)
  • Some functions accept it explicitly (country_id: str = ""), others use **_kwargs

Changes

  • Expect 7 parameters instead of 6
  • Accept either country_id or _kwargs as the 7th param name
  • Add **kwargs to tracker functions in mock tests
  • Include country_id='' in mock assertion expectations

Background

Direct commits to app-v2-migration after PR #89 added country_id to module functions without updating the corresponding tests. This broke CI for any new PRs against this branch.

🤖 Generated with Claude Code

The computation module functions now include a 7th parameter for
country_id (passed as kwarg by run_modules). Some functions accept
it explicitly while others use **_kwargs.

Updated tests to:
- Expect 7 parameters instead of 6
- Accept either 'country_id' or '_kwargs' as the 7th param name
- Add **kwargs to tracker functions in mock tests
- Include country_id='' in mock assertion expectations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@anth-volk anth-volk merged commit 1d58145 into app-v2-migration Mar 3, 2026
1 check passed
@anth-volk anth-volk deleted the fix/computation-module-tests branch March 3, 2026 16:40
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.

2 participants