Commit a9ea640
committed
test(docs[sphinx_fonts]): add tests for sphinx_fonts extension
why: codecov drops because docs/_ext/sphinx_fonts.py is measured
for coverage but has zero tests across all repos.
what:
- Add test_sphinx_fonts.py with 21 tests covering all functions
- Add test infrastructure (conftest, __init__) for docs/_ext tests
- Test pure functions, I/O with monkeypatch, Sphinx events with SimpleNamespace
- Cover all branches: cached/success/URLError/OSError, html/non-html, empty/with fonts1 parent e4ec3b5 commit a9ea640
5 files changed
Lines changed: 537 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments