import sys from pathlib import Path # Add vnpy mock to path for imports sys.path.insert(0, str(Path(__file__).parent)) import pandas as pd import pytest @pytest.fixture def good_daily_df(): return pd.DataFrame({ "date": ["2026-01-01", "2026-01-02"], "open": [10.0, 11.0], "high": [10.5, 11.5], "low": [9.8, 10.8], "close": [10.2, 11.2], "volume": [10000, 12000], }) @pytest.fixture def bad_daily_df(): return pd.DataFrame({ "date": ["2026-01-01"], "open": [0.0], "high": [0.0], "low": [0.0], "close": [0.0], "volume": [100], })