Spaces:
Running on Zero

raylim Claude Sonnet 4.5 commited on
Commit
b6dcc8c
·
unverified ·
1 Parent(s): 0f7e9b1

Fix test mocks for segment_tissue return value

Browse files

segment_tissue returns 4 values (polygon, _, coords, attrs) but tests
were mocking it to return only 2 values, causing unpacking errors.

Fixes:
- Mock segment_tissue to return all 4 values
- Mock gr.Warning to avoid argument mismatch errors
- Use tempfile for directory creation in Gradio test
- Mock DataFrame.to_csv to avoid file system issues

All regression tests now pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

1 file changed +70 -56
tests/test_regression_single_slide.py+70-56