import sys | |
import os | |
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../..'))) | |
from utils import yfinance_utils | |
import pandas as pd | |
def test_fetch_yfinance_daily_real(): | |
result = yfinance_utils.fetch_yfinance_daily('MSFT', '2023-01-01', '2023-01-10') | |
assert result is not None | |
assert not result.empty | |
assert isinstance(result, pd.Series) |