Open dhruvan2006 opened 2 weeks ago
I ran into this too.
I think the first test_price_repair.TestPriceRepair.test_repair_bad_div_adjusts
and test_price_repair.TestPriceRepair.test_repair_zeroes_daily
are related to https://github.com/ranaroussi/yfinance/commit/8daa47716766cca2820b9bf78bb9f4487d387c7c as when I checkout the branch before that, it doesn't report the errors.
As for the test_utils
cache test, it's harder to reproduce as it works on individual tests but fails when run under python -m unittest discover -s tests
~If you can just ignore the repair-related tests, fail probably means I improved the algorithm but didn't update the test data.~
There are real bugs in the repair logic, I'll handle.
Running
python -m unittest discover -s tests
from #1084 causes 5 failures and 1 error.====================================================================== ERROR: test_resampling (test_price_repair.TestPriceRepairAssumptions.test_resampling)
Traceback (most recent call last): File "/home/dhruvan/yfinance/tests/test_price_repair.py", line 49, in test_resampling elif dfr.index[0] == df_truth.index[1]: