kin: KIN-BIZ-002 Исправить консистентность: approve через /tasks/{id}/approve не продвигает phase state machine
This commit is contained in:
parent
044bd15b2e
commit
39acc9cc4b
5 changed files with 288 additions and 4 deletions
|
|
@ -32,9 +32,13 @@ def db_conn():
|
|||
|
||||
@pytest.fixture
|
||||
def tg_env(monkeypatch):
|
||||
"""Inject Telegram credentials via env vars (bypass secrets file)."""
|
||||
"""Inject Telegram credentials via env vars (bypass secrets file).
|
||||
|
||||
Also stubs _load_kin_config so the secrets file doesn't override env vars.
|
||||
"""
|
||||
monkeypatch.setenv("KIN_TG_BOT_TOKEN", "test-token-abc123")
|
||||
monkeypatch.setenv("KIN_TG_CHAT_ID", "99887766")
|
||||
monkeypatch.setattr("core.telegram._load_kin_config", lambda: {})
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue