Skip to content

Commit 6228369

Browse files
cliffhallclaude
andcommitted
docs(fetch): purpose headers for new test files; coverage target wording
Address Copilot round 2 on #4971. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: cliffhall <[email protected]>
1 parent b266159 commit 6228369

4 files changed

Lines changed: 16 additions & 2 deletions

File tree

‎src/fetch/.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Coverage output from `uv run --frozen pytest --cov ...` (see README, Development).
2+
# Kept per server so each Python server ignores its own reports.
13
coverage.json
24
.coverage
35
.coverage.*

‎src/fetch/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ Coverage, measured per file with branch coverage:
248248
uv run --frozen pytest --cov --cov-report=term-missing --cov-report=json
249249
```
250250

251-
This writes `coverage.json` (git-ignored). Every file under `src/mcp_server_fetch` is held to at least 90% of lines and 90% of branches.
251+
This writes `coverage.json` (git-ignored). The command reports coverage but does not enforce a threshold; the target is at least 90% of lines and 90% of branches for every file under `src/mcp_server_fetch`.
252252

253253
## Contributing
254254

‎src/fetch/tests/conftest.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
"""Expose the shared fixtures in harness.py to pytest.
2+
3+
The fixtures live in harness.py beside the helpers the tests import from it
4+
(``connect``, ``FakeWeb``); pytest only discovers fixtures from conftest.py,
5+
so this file re-exports them.
6+
"""
7+
18
from .harness import node_readability, private_tempdir, python_readability, web
29

310
__all__ = ["node_readability", "private_tempdir", "python_readability", "web"]

‎src/fetch/tests/test_entrypoints.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
"""Tests for the command-line entry points: ``main()``, ``__main__`` and the console script."""
1+
"""Tests for the command-line entry points: ``main()``, ``__main__`` and the console script.
2+
3+
``main()`` and ``__main__`` run in-process with ``serve`` patched, so coverage
4+
sees them; only the console-script smoke spawns a process, to prove the
5+
installed entry point boots and speaks MCP over real stdio.
6+
"""
27

38
from __future__ import annotations
49

0 commit comments

Comments
 (0)