-
Notifications
You must be signed in to change notification settings - Fork 20
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
test 467 #481
test 467 #481
Conversation
WalkthroughThe pull request introduces a new test method Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
tests/test_core/test_coords.py (1)
364-371
: Test coverage expansion is valid and well-structured.
The new test verifies thatget_coord()
correctly handlesdatetime
objects and atimedelta
step. Consider adding an assertion forcoord.max()
as well, to fully confirm the upper bound behavior.coord = get_coord(start=d1, stop=d2, step=step) assert str(d1) == str(coord.min()) + assert str(d2) == str(coord.max())
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
tests/test_core/test_coords.py
(2 hunks)
🔇 Additional comments (1)
tests/test_core/test_coords.py (1)
5-5
: Import usage looks good.
No concerns here; importingdatetime
from the standard library is appropriate for the new test.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #481 +/- ##
=======================================
Coverage 99.85% 99.85%
=======================================
Files 118 118
Lines 9700 9700
=======================================
Hits 9686 9686
Misses 14 14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
closes #467 |
Description
This PR adds a test for issue #467. It turns out it wasn't really an issue; the example just needs to use a timedelta rather than float in the step argument.
Checklist
I have (if applicable):
Summary by CodeRabbit