Skip to content

Commit da128dc

Browse files
ianhiclaude
andcommitted
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

3 files changed

+472
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ source = "code"
116116

117117
[tool.pytest.ini_options]
118118
testpaths = [
119+
"tests",
119120
"docs/examples",
120121
]
121122
norecursedirs = [

0 commit comments

Comments
 (0)