-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Set default billing terms for missing info cache #4614
feat: Set default billing terms for missing info cache #4614
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Skipped Deployments
|
Docker builds report
|
Uffizzi Preview |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4614 +/- ##
========================================
Coverage 97.16% 97.17%
========================================
Files 1160 1162 +2
Lines 40137 40275 +138
========================================
+ Hits 39000 39138 +138
Misses 1137 1137 ☔ View full report in Codecov by Sentry. |
I've read the description of this PR a few times and I can't make any sense of it? Can you reword it at all?
|
def test_get_usage_data_returns_empty_list_when_unset_subscription_information_cache( | ||
period: str, | ||
@pytest.mark.freeze_time("2023-01-19T09:09:47.325132+00:00") | ||
def test_get_usage_data_returns_empty_list_when_unset_subscription_information_cache_for_previous_billing_period( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the name of this test (and the following one) needs updating to reflect the new behaviour?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. Fixed.
Changes
This updates the billing period API usage to 30 day defaults for the current billing period and previous billing period.
How did you test this code?
Split a test into two separate tests and verified the mocked calls.