-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
tests for tslibs.conversion and tslibs.timezones #19642
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
Conversation
compare_utc_to_local(tz_didx, utc_didx) | ||
# local tz to UTC can be differ in hourly (or higher) freqs because | ||
# of DST | ||
compare_local_to_utc(tz_didx, utc_didx) |
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.
you could parametrize
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.
pls do this
Codecov Report
@@ Coverage Diff @@
## master #19642 +/- ##
==========================================
+ Coverage 91.58% 91.59% +<.01%
==========================================
Files 150 150
Lines 48806 48806
==========================================
+ Hits 44701 44703 +2
+ Misses 4105 4103 -2
Continue to review full report at Codecov.
|
compare_utc_to_local(tz_didx, utc_didx) | ||
# local tz to UTC can be differ in hourly (or higher) freqs because | ||
# of DST | ||
compare_local_to_utc(tz_didx, utc_didx) |
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.
pls do this
compare_utc_to_local(tz_didx, utc_didx) | ||
compare_local_to_utc(tz_didx, utc_didx) | ||
|
||
def test_tz_convert_empty(self): |
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.
let's parameterize empty/nat and make a single test
from pandas import Timestamp | ||
|
||
|
||
class TestTimeZoneCacheKey(object): |
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.
no reason to make this part of a class
tz_didx = date_range('2014-03-01', '2015-01-10', freq='H', tz=tz) | ||
utc_didx = date_range('2014-03-01', '2015-01-10', freq='H') | ||
compare_utc_to_local(tz_didx, utc_didx) | ||
# local tz to UTC can be differ in hourly (or higher) freqs because |
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.
blank line before comment
|
||
from datetime import datetime | ||
|
||
import pandas.util.testing as tm | ||
from pandas.core.indexes.datetimes import date_range | ||
from pandas._libs import tslib |
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.
what's left in this 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.
Not much. I'll try to kill it off after clearing out the current PR backlog.
thanks |
This is the last one.