Skip to content

test(teams): make the skip-auth fixture survive the SDK's flag rename - #180

Merged
patrick-chinchill merged 1 commit into
mainfrom
test/teams-sdk-skip-auth-rename
Sep 1, 2026
Merged

patrick-chinchill merged 1 commit into
mainfrom
test/teams-sdk-skip-auth-rename

Conversation

@patrick-chinchill

Copy link
Copy Markdown
Collaborator

Why

microsoft-teams-apps 2.0.14+ renamed HttpServer.initialize's skip_auth keyword to dangerously_allow_unauthenticated_requests. The four test-side monkeypatches (_skip_teams_jwt in test_teams_coverage.py, test_teams_extended.py, test_teams_adapter.py, test_fixture_replay.py) re-declared the old signature, so every Teams webhook test fails with TypeError: unexpected keyword argument 'dangerously_allow_unauthenticated_requests' once CI resolves 2.0.16 — which it does on every run, because uv.lock isn't tracked and the teams extra only says >=2.0.13. main's last green run predates the 2.0.14 release; this is why #179 (docs-only) is red.

What

The fixtures now force whichever flag the installed SDK has (inspect.signature) and forward all other arguments untouched (the SDK calls initialize with keywords only). No source changes.

Verification

Full suite locally: 5147 passed on microsoft-teams-apps 2.0.13.4 (locked) and again on 2.0.16 (what CI installs).

https://claude.ai/code/session_01AxCf56kzyzW2AhTDoSc3wa

microsoft-teams-apps 2.0.14+ renamed HttpServer.initialize's skip_auth
keyword to dangerously_allow_unauthenticated_requests. The four test-side
monkeypatches re-declared the old signature, so every Teams webhook test
failed with 'unexpected keyword argument' as soon as CI resolved 2.0.16
(uv.lock is not tracked, so CI installs the latest matching 2.0.x). The
fixtures now force whichever flag the installed SDK has and forward the
rest untouched. Full suite green on both 2.0.13.4 and 2.0.16 (5147 passed).

Claude-Session: https://claude.ai/code/session_01AxCf56kzyzW2AhTDoSc3wa
@patrick-chinchill
patrick-chinchill merged commit b853520 into main Sep 1, 2026
6 checks passed
@patrick-chinchill
patrick-chinchill deleted the test/teams-sdk-skip-auth-rename branch September 1, 2026 01:21
patrick-chinchill added a commit that referenced this pull request Sep 2, 2026
…NOTICE (#181)

Python-only fixes on top of 4.31.0 (UPSTREAM_PARITY unchanged): the #178
security fix, the #180 test-fixture fix and the #179 NOTICE. Mirrors the
0.4.31.1 release-commit shape (pyproject, README status line, CLAUDE.md
version list, CHANGELOG).

Claude-Session: https://claude.ai/code/session_01AxCf56kzyzW2AhTDoSc3wa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant