Skip to content

Conversation

@jpstroop
Copy link
Owner

No description provided.

- Update test files to use mock_response_factory consistently
- Replace direct manipulations of mock_response with factory usage
- Keep documentation in DEVELOPMENT.md about the standardized approach
- Update more test files to use mock_response_factory consistently
- Replace direct manipulations of mock_response with factory usage in:
  - nutrition/test_get_food.py
  - nutrition/test_get_food_goals.py
  - friends/test_get_friends_leaderboard.py
  - nutrition/test_delete_meal.py
  - activity_timeseries/test_get_activity_timeseries.py
  - active_zone_minutes/test_get_azm_timeseries_by_date.py
- Update more test files to consistently use mock_response_factory:
  - nutrition/test_get_food_locales.py
  - nutrition/test_get_food_units.py
  - body_timeseries/test_get_body_timeseries_by_date_range.py
  - nutrition/test_get_recent_foods.py
  - nutrition/test_get_favorite_foods.py
  - activity_timeseries/test_get_activity_timeseries_by_date_range.py
  - active_zone_minutes/test_get_azm_timeseries_by_interval.py
  - nutrition/test_get_meal.py
  - nutrition/test_update_meal.py

This continues the standardization effort to ensure consistent usage of mock_response_factory throughout the test suite.
…cumentation

- Updated test_base.py to use mock_response_factory pattern
- Enhanced docs/DEVELOPMENT.md with detailed examples for mock_response_factory usage
- Documented both standard response pattern and parameter validation pattern
@codecov
Copy link

codecov bot commented Mar 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (f6b183e) to head (e9316e8).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #24   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           34        34           
  Lines         1989      1989           
  Branches       165       165           
=========================================
  Hits          1989      1989           
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jpstroop jpstroop merged commit f3c6647 into main Mar 11, 2025
10 checks passed
@jpstroop jpstroop deleted the mock-response-doc-update branch March 11, 2025 04:53
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