from pathlib import Path import pytest from mywhoosh_garmin_sync.config import Settings @pytest.fixture def settings(tmp_path: Path) -> Settings: return Settings( garmin_email="garmin@example.com", garmin_password="garmin-pass", poll_interval_seconds=3600, data_dir=tmp_path, raw_dir=tmp_path / "raw", converted_dir=tmp_path / "converted", browser_state_dir=tmp_path / "browser", mywhoosh_auth_state_path=tmp_path / "mywhoosh_auth_state.json", garmin_tokenstore=tmp_path / "garmin_tokens", db_path=tmp_path / "state.sqlite3", log_level="INFO", dry_run=False, dashboard_host="127.0.0.1", dashboard_port=8080, mywhoosh_login_url="https://www.mywhoosh.com/login/", mywhoosh_activity_url="https://www.mywhoosh.com/profile/", mywhoosh_headless=True, mywhoosh_timeout_seconds=1, mywhoosh_download_text_hints=["fit", "download"], mywhoosh_activities_button_text="ACTIVITIES", mywhoosh_download_button_selector=".btnDownload", mywhoosh_slow_mo_ms=0, mywhoosh_manual_login_wait_seconds=0, mywhoosh_debug_screenshots=False, mywhoosh_debug_dir=tmp_path / "debug", garmin_mfa_code=None, target_garmin_manufacturer_id=1, target_garmin_product_id=3578, target_garmin_product_name="Edge 1030 Plus", target_garmin_serial_number=None, )