fix(teams-pipeline): fill in missing delivery URL in adapter-reuse test

test_build_pipeline_runtime_reuses_existing_teams_adapter_surface set
delivery_mode='incoming_webhook' but omitted incoming_webhook_url.
_teams_delivery_is_configured() requires the URL to mark delivery as
enabled, so the guarded build_pipeline_runtime gate in runtime.py
correctly left teams_sender=None and the assertion failed.

The intent of the test — prove we reuse the existing TeamsSummaryWriter
from plugins/platforms/teams/adapter.py rather than introducing a new
adapter surface elsewhere — is unchanged. Added the URL so the gate
passes and the architectural assertion holds.
This commit is contained in:
Teknium 2026-05-08 11:20:43 -07:00
parent d36ccc29c9
commit 5e8dfc9f6d

View file

@ -98,7 +98,10 @@ def test_build_pipeline_runtime_reuses_existing_teams_adapter_surface(monkeypatc
platforms={
Platform("teams"): PlatformConfig(
enabled=True,
extra={"delivery_mode": "incoming_webhook"},
extra={
"delivery_mode": "incoming_webhook",
"incoming_webhook_url": "https://example.com/hook",
},
)
}
)