Conversation
- 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 ReportAll modified and coverable lines are covered by tests ✅
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:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.