Commit da128dc
Test: Add comprehensive tests for rcParams support
Manual test notebook (tests/manual_test_rcparams_save.ipynb):
- Tests all savefig.* rcParams (format, transparent, facecolor, dpi)
- Tests multiple formats: PNG, PDF, SVG, JPEG
- Includes verification checklist
- Documents expected behavior for each test case
Python unit tests (tests/test_download.py):
- Test _send_save_buffer respects savefig.format (PNG, PDF, SVG)
- Test download() method calls _send_save_buffer
- Test Toolbar.save_figure() calls _send_save_buffer
- Test respects savefig.dpi and savefig.transparent rcParams
- Test warns on unsupported format (e.g., webp)
- Add 'tests' to pytest testpaths in pyproject.toml
Addresses issues #138, #234, #339
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 94b59c4 commit da128dc
File tree
3 files changed
+472
-0
lines changed- tests
3 files changed
+472
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
0 commit comments