Commit cd90d5c
test(mcp): suppress webbrowser.open during browser-test fixture
`fastmcp dev apps` (spawned by the browser-test fixture) unconditionally
calls `webbrowser.open(dev_url)` at startup with no flag to disable.
Set BROWSER=true in the subprocess env so Python's webbrowser module
dispatches to the `true` command (resolved via PATH — exits 0, opens
nothing) instead of macOS's AppleScript browser-opener. Playwright
continues to drive headless Chromium for the actual render tests;
only the spurious developer-facing window is gone.
The override is skipped on Windows — there's no `true` command there,
and webbrowser would fall through to the default browser. The suite
is documented as macOS/Linux-only anyway, matching the
`start_new_session` guard a few lines below.
uv.lock is the workspace-version bump from `client v0.62.0` on main,
bundled per CLAUDE.md to keep the lockfile in sync with pyproject.toml.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 733a10c commit cd90d5c
2 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
97 | 108 | | |
98 | 109 | | |
99 | 110 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments