Commit 0a37b26
committed
fix: add pragma no cover to Protocol stubs and unreachable mock branch
Protocol stub methods (fetch_token, create_authorization_url,
ensure_active_token) have Ellipsis bodies that coverage flags as
uncovered branches because Protocol classes are never instantiated.
Mark them with pragma: no cover.
The fallback path in _mock_iterdir (returning original_iterdir when the
path does not contain "fake") is only reachable on Windows where
jsonschema lazily loads schemas during the test. On Linux/macOS jsonschema
loads schemas eagerly so the branch is never taken. Mark it accordingly.1 parent c27e10f commit 0a37b26
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments