Commit 6212a64
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 e9c4405 commit 6212a64
2 files changed
+4
-4
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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments