Commit e25445e
Fix doc-snippet test failures from PR 2.5 plot_bacon insertion
CI's "Validate RST code snippets" job failed with 2 errors after the
plot_bacon section was inserted in docs/api/visualization.rst:
1. block8 (new plot_bacon example) used wrong API:
BaconDecomposition.fit() takes first_treat=, not treatment=.
Fixed to first_treat='first_treat'.
2. block9 (Plotly Backend, was block8 before insertion) raised NameError
on 'results' because it relies on context from earlier blocks. The
_CONTEXT_DEPENDENT_SNIPPETS allowlist had api_visualization:block8
which now points to my new plot_bacon block (which is standalone and
does NOT need leniency); the actual context-dependent block moved to
index 9. Updated allowlist entry to api_visualization:block9.
Verified locally: both blocks now pass under
PYTHONPATH=. DIFF_DIFF_BACKEND=python pytest
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 10eff92 commit e25445e
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| |||
0 commit comments