Skip to content

Fixing tests for index.freq #814

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

Merged
merged 2 commits into from
Aug 2, 2020
Merged

Fixing tests for index.freq #814

merged 2 commits into from
Aug 2, 2020

Conversation

simongarisch
Copy link
Contributor

Fixing tests.

pandas.testing.assert_series_equal now includes a default argument of check_freq=True. With this new arg some of the tests are failing as the index.freq does not match in comparisons.

I've adjusted index.freq so that the tests pass. Another option is to use check_freq=False, but this argument is not available in earlier versions of pandas. Alternatively, we could inspect the function for the existence of check_freq and pass False if required. I considered changing index.freq to be the easiest option.

Thanks

@codecov-commenter
Copy link

codecov-commenter commented Aug 2, 2020

Codecov Report

Merging #814 into master will decrease coverage by 10.44%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #814       +/-   ##
===========================================
- Coverage   84.31%   73.87%   -10.45%     
===========================================
  Files          62       62               
  Lines        2837     2840        +3     
  Branches      303      303               
===========================================
- Hits         2392     2098      -294     
- Misses        371      663      +292     
- Partials       74       79        +5     
Impacted Files Coverage Δ
pandas_datareader/tests/test_fred.py 100.00% <ø> (ø)
pandas_datareader/tests/test_econdb.py 100.00% <100.00%> (ø)
pandas_datareader/tests/test_eurostat.py 100.00% <100.00%> (ø)
pandas_datareader/tests/test_oecd.py 96.96% <100.00%> (+0.09%) ⬆️
pandas_datareader/tests/av/test_av_time_series.py 29.89% <0.00%> (-70.11%) ⬇️
pandas_datareader/av/forex.py 27.65% <0.00%> (-68.09%) ⬇️
pandas_datareader/quandl.py 30.95% <0.00%> (-61.91%) ⬇️
pandas_datareader/tests/test_quandl.py 42.59% <0.00%> (-57.41%) ⬇️
pandas_datareader/av/time_series.py 40.00% <0.00%> (-56.00%) ⬇️
pandas_datareader/tiingo.py 42.57% <0.00%> (-53.47%) ⬇️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b48e2e4...6c7b39a. Read the comment docs.

@bashtage
Copy link
Contributor

bashtage commented Aug 2, 2020

Looks good to me. Thanks!

@bashtage bashtage merged commit af99219 into pydata:master Aug 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants