Repository navigation
Commit af31c62
Mock webbrowser.open() in test_dotfile to stop popping up a PDF
showgraph() calls webbrowser.open() on the rendered PDF, which was
launching a real PDF viewer/browser window every test run -- purely
incidental, since the test made no assertion on the result at all.
Mocks webbrowser.open() so the test runs headless, and replaces the
"doesn't crash" smoke test with a real assertion: the file
webbrowser.open() was called with actually exists and starts with the
PDF magic bytes (%PDF-), confirming dot's rendering pipeline genuinely
produced a valid PDF -- a stronger check than before, not a weaker one.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 6c24cfe commit af31c62
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
781 | 781 | | |
782 | 782 | | |
783 | 783 | | |
| 784 | + | |
784 | 785 | | |
785 | 786 | | |
786 | 787 | | |
| |||
795 | 796 | | |
796 | 797 | | |
797 | 798 | | |
798 | | - | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
799 | 810 | | |
800 | 811 | | |
801 | 812 | | |
| |||
0 commit comments