Commit 4e8d2e8
Fake Torchlight in docs prerelease tests to fix CI
The prerelease docs tests render pages containing fenced code blocks.
Torchlight throws when no token is configured (as in CI), and because
the CommonMark converter is a shared static singleton, that failure
cascaded into unrelated tests (heading renderer, docs meta, support
tickets). Configure a fake token and fake the Torchlight API in setUp,
matching TorchlightCodeBlockTest, so the pages render offline.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 98c4339 commit 4e8d2e8
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
13 | 28 | | |
14 | 29 | | |
15 | 30 | | |
| |||
0 commit comments