Contributing guide#
Please refer to the contribution guide from the spatialdata repository.
Debugging napari GUI tests#
To visually inspect what a test is rendering in napari:
Change
make_napari_viewer()tomake_napari_viewer(show=True)Add
napari.run()before the end of the test (before the assertions)
Example:
import napari
def test_my_visualization(make_napari_viewer):
viewer = make_napari_viewer(show=True)
# ... setup code ...
napari.run()
# assertions...
Remember to revert these changes before committing.