from pathlib import Path import pytest from app.config import AccessSettings, RuntimeSettings, Settings, TelegramSettings from app.texts import Texts, load_texts ROOT = Path(__file__).resolve().parent.parent ADMIN = 1001 OUTSIDER = 2002 @pytest.fixture def texts() -> Texts: return load_texts(ROOT / "config") @pytest.fixture def settings(tmp_path: Path) -> Settings: return Settings( telegram=TelegramSettings(bot_token="42:TEST-TOKEN"), access=AccessSettings(admin_ids=frozenset({ADMIN})), runtime=RuntimeSettings(config_dir=ROOT / "config", heartbeat_file=tmp_path / "hb"), )