-
Notifications
You must be signed in to change notification settings - Fork 44
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
Support for timezone argument in calendar operators #301
Conversation
Coverage reportMain: 91.10% | PR: 91.12% | Diff: 0.02 ✅ |
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.
Great work! 🙌🏼
from temporian.test.utils import assertOperatorResult, i32 | ||
|
||
|
||
class CalendarTimezoneTest(TestCase): |
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 feel these tests might be easier to miss here than if they were in each operator's test file - is there a reason to have them here together?
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.
The reason is I don't want to duplicate the very specific setUp() code, and also it's easier to check that I'm testing that the argument is connected in all operators.
I agree it's easy to miss the file though, so I renamed it to test_base_timezone
and now it appears on top together with test_base.py
(which already existed and tests other generic stuff).
Coverage reportMain: 91.11% | PR: 91.13% | Diff: 0.02 ✅ |
Adds support to specify the timezone in calendar operators, using the timezone name (e.g:
America/Montevideo
) or an offset in hours (e.g:-3
) in the argumenttz
.To ease serialization, the core operator only receives the offset in hours.