Files
mywhoosh-garmin-sync/tests/conftest.py
Bastian Wagner 8d07939527 Init
2026-05-05 19:26:43 +02:00

46 lines
1.6 KiB
Python

from pathlib import Path
import pytest
from mywhoosh_garmin_sync.config import Settings
@pytest.fixture
def settings(tmp_path: Path) -> Settings:
return Settings(
mywhoosh_email="whoosh@example.com",
mywhoosh_password="whoosh-pass",
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_enabled=True,
dashboard_bind="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_max_downloads_per_run=10,
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,
)