"""Pytest fixtures for signal_v2 tests.""" from pathlib import Path import pytest import respx @pytest.fixture def tmp_dedup_db(tmp_path) -> Path: """SQLite 단위 테스트용 임시 DB path.""" return tmp_path / "test_signal_v2.db" @pytest.fixture def mock_stock_api(): """respx 로 stock API mock. base_url 은 테스트마다 임의.""" with respx.mock(base_url="https://test.stock.local", assert_all_called=False) as mock: yield mock