Open matin opened 2 months ago
The changes across multiple test files involve updating the @pytest.mark.vcr
decorator to include parentheses (@pytest.mark.vcr()
). This ensures that the decorator is consistently used, possibly affecting how VCR (virtual cassette recorder) handles HTTP interactions for test recordings and replays.
File | Change Summary |
---|---|
tests/stats/test_sleep_stats.py |
Updated @pytest.mark.vcr to @pytest.mark.vcr() in test_daily_sleep function. |
tests/stats/test_steps.py |
Updated @pytest.mark.vcr to @pytest.mark.vcr() in test_daily_steps and test_weekly_steps . |
tests/stats/test_stress.py |
Updated @pytest.mark.vcr to @pytest.mark.vcr() in multiple stress test functions. |
tests/test_http.py |
Updated @pytest.mark.vcr to @pytest.mark.vcr() in multiple HTTP-related test functions. |
tests/test_sso.py |
Updated @pytest.mark.vcr to @pytest.mark.vcr() in multiple SSO-related test functions. |
tests/test_users.py |
Updated @pytest.mark.vcr to @pytest.mark.vcr() in test_user_profile and test_user_setttings . |
[!TIP]
Early access features: enabled
We are currently testing the following features in early access: - **OpenAI `gpt-4o` model for code reviews and chat**: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available. Note: - You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file. - Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide feedback and report issues.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
87abab3
) to head (4546623
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@coderabbitai suggest changes to the README
@matin: Based on the recent changes, I suggest adding the following section to the README to document the new DailyHydration
class:
Daily hydration statistics
garth.DailyHydration.list("2023-07-23", 2)
[
DailyHydration(
calendar_date=datetime.date(2023, 7, 22),
value_in_ml=2000,
goal_in_ml=2500
),
DailyHydration(
calendar_date=datetime.date(2023, 7, 23),
value_in_ml=2100,
goal_in_ml=2500
)
]
This addition will help users understand how to access and use the new hydration stats feature.
@coderabbitai review
@coderabbitai review
@coderabbitai full review
Add hydration stats.
Closes issue #54
Summary by CodeRabbit
@pytest.mark.vcr()
decorator for enhanced consistency in testing.