feat: transport registry and onboarding updates (#69)

This commit is contained in:
banteg
2026-01-08 12:55:15 +04:00
committed by GitHub
parent c0579a4ebd
commit 75d669bdd7
11 changed files with 442 additions and 110 deletions
+19
View File
@@ -0,0 +1,19 @@
import pytest
from takopi import transports
from takopi.config import ConfigError
def test_transport_registry_lists_telegram() -> None:
ids = transports.list_transports()
assert "telegram" in ids
def test_transport_registry_gets_telegram() -> None:
backend = transports.get_transport("telegram")
assert backend.id == "telegram"
def test_transport_registry_unknown() -> None:
with pytest.raises(ConfigError, match="Unknown transport"):
transports.get_transport("nope")