fix: update beta flags tests to expect combined hardcoded + tool flags #23

Merged
code-server merged 1 commits from fix/beta-flags-tests into main 2026-03-05 14:04:05 +01:00
1 Commits
Author SHA1 Message Date
code-serverandClaude Sonnet 4.5 8f8fc81135 fix: update beta flags tests to expect combined hardcoded + tool flags
Build Nanobot OAuth / cleanup (pull_request) Has been skipped
Build Nanobot OAuth / build (pull_request) Successful in 6m13s
The AnthropicOAuthProvider always includes hardcoded beta flags:
- claude-code-20250219
- oauth-2025-04-20
- context-management-2025-06-27

Tool-specific beta flags are then merged with these and sorted
alphabetically. Tests were only checking for tool flags, not the
combined result.

Changes:
-  Updated test_oauth_utils.py to expect all hardcoded flags
-  Updated test_beta_flags_collected_from_tools to expect combined flags
-  Updated test_multiple_beta_flags_joined to expect combined flags

All 3 beta flags tests now pass.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-05 09:44:17 +00:00