You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]:
~~~~~~~~~~~~~~^^^
File "/home/dhruvan/yfinance/.venv/lib/python3.12/site-packages/pandas/core/indexes/base.py", line 5389, in getitem
return getitem(key)
^^^^^^^^^^^^
File "/home/dhruvan/yfinance/.venv/lib/python3.12/site-packages/pandas/core/arrays/datetimelike.py", line 381, in getitem
result = cast("Union[Self, DTScalarOrNaT]", super().getitem(key))
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dhruvan/yfinance/.venv/lib/python3.12/site-packages/pandas/core/arrays/_mixins.py", line 284, in getitem
result = self._ndarray[key]
~~~~~~~~~~~~~^^^^^
IndexError: index 1 is out of bounds for axis 0 with size 1
Traceback (most recent call last):
File "/home/dhruvan/yfinance/tests/test_price_repair.py", line 668, in test_repair_bad_div_adjusts
self.assertTrue(f_close.all())
AssertionError: np.False_ is not true
Traceback (most recent call last):
File "/home/dhruvan/yfinance/tests/test_price_repair.py", line 384, in test_repair_zeroes_daily
self.assertTrue(np.isclose(repaired_df[c], correct_df[c], rtol=1e-8).all())
AssertionError: np.False is not true
Traceback (most recent call last):
File "/home/dhruvan/yfinance/tests/test_utils.py", line 52, in test_setTzCacheLocation
self.assertTrue(os.path.exists(os.path.join(self.tempCacheDir.name, "tkr-tz.db")))
AssertionError: False is not true
Traceback (most recent call last):
File "/home/dhruvan/yfinance/tests/test_utils.py", line 81, in test_tzCacheRootLookup
self.assertTrue(cache.dummy)
AssertionError: False is not true
Traceback (most recent call last):
File "/home/dhruvan/yfinance/tests/test_utils.py", line 70, in test_tzCacheRootStore
self.assertTrue(cache.dummy)
AssertionError: False is not true
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]:
~~~~~~~~~~~~~~^^^
File "/home/dhruvan/yfinance/.venv/lib/python3.12/site-packages/pandas/core/indexes/base.py", line 5389, in getitem
return getitem(key)
^^^^^^^^^^^^
File "/home/dhruvan/yfinance/.venv/lib/python3.12/site-packages/pandas/core/arrays/datetimelike.py", line 381, in getitem
result = cast("Union[Self, DTScalarOrNaT]", super().getitem(key))
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dhruvan/yfinance/.venv/lib/python3.12/site-packages/pandas/core/arrays/_mixins.py", line 284, in getitem
result = self._ndarray[key]
~~~~~~~~~~~~~^^^^^
IndexError: index 1 is out of bounds for axis 0 with size 1
======================================================================
FAIL: test_repair_bad_div_adjusts (test_price_repair.TestPriceRepair.test_repair_bad_div_adjusts)
Traceback (most recent call last):
File "/home/dhruvan/yfinance/tests/test_price_repair.py", line 668, in test_repair_bad_div_adjusts
self.assertTrue(f_close.all())
AssertionError: np.False_ is not true
======================================================================
FAIL: test_repair_zeroes_daily (test_price_repair.TestPriceRepair.test_repair_zeroes_daily)
Traceback (most recent call last):
File "/home/dhruvan/yfinance/tests/test_price_repair.py", line 384, in test_repair_zeroes_daily
self.assertTrue(np.isclose(repaired_df[c], correct_df[c], rtol=1e-8).all())
AssertionError: np.False is not true
======================================================================
FAIL: test_setTzCacheLocation (test_utils.TestCache.test_setTzCacheLocation)
Traceback (most recent call last):
File "/home/dhruvan/yfinance/tests/test_utils.py", line 52, in test_setTzCacheLocation
self.assertTrue(os.path.exists(os.path.join(self.tempCacheDir.name, "tkr-tz.db")))
AssertionError: False is not true
======================================================================
FAIL: test_tzCacheRootLookup (test_utils.TestCacheNoPermission.test_tzCacheRootLookup)
Traceback (most recent call last):
File "/home/dhruvan/yfinance/tests/test_utils.py", line 81, in test_tzCacheRootLookup
self.assertTrue(cache.dummy)
AssertionError: False is not true
======================================================================
FAIL: test_tzCacheRootStore (test_utils.TestCacheNoPermission.test_tzCacheRootStore)
Traceback (most recent call last):
File "/home/dhruvan/yfinance/tests/test_utils.py", line 70, in test_tzCacheRootStore
self.assertTrue(cache.dummy)
AssertionError: False is not true
Ran 109 tests in 308.065s
FAILED (failures=5, errors=1, skipped=2, expected failures=1)
The text was updated successfully, but these errors were encountered: