fix: plugin allowlist matching and windows session paths (#72)

This commit is contained in:
banteg
2026-01-09 19:25:10 +04:00
committed by GitHub
parent 2d9479541a
commit 8421ec8b4a
6 changed files with 51 additions and 10 deletions
+17
View File
@@ -97,6 +97,23 @@ def test_allowlist_filters_by_distribution(monkeypatch) -> None:
assert ids == ["codex"]
def test_allowlist_canonicalizes_distribution_names(monkeypatch) -> None:
entrypoints = [
FakeEntryPoint(
"slack",
"takopi.transport.slack:BACKEND",
plugins.TRANSPORT_GROUP,
dist_name="takopi-transport-slack",
)
]
install_entrypoints(monkeypatch, entrypoints)
ids = plugins.list_ids(
plugins.TRANSPORT_GROUP, allowlist=["takopi_transport.slack"]
)
assert ids == ["slack"]
def test_validator_errors_are_captured(monkeypatch) -> None:
entrypoints = [
FakeEntryPoint(