Skip to content

Commit 2db28dc

Browse files
committed
more fixes
1 parent 8544579 commit 2db28dc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

69.8 KB
Loading

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def make_multichannel_blobs(n=512, nch=6, sigma=0.1, radius=0.6, random_state=0)
119119

120120

121121
@pytest.fixture
122-
def test_sdata_multichannel() -> SpatialData:
122+
def sdata_multichannel() -> SpatialData:
123123
"""Creates a SpatialData object with 5 channels arranged in a circle.
124124
125125
Each channel is a Gaussian blob positioned at evenly spaced angles around a circle.

tests/pl/test_render_images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def test_fail_when_len_palette_is_not_equal_to_len_user_channels(sdata_blobs: Sp
197197

198198

199199
def test_fail_when_len_cmap_not_equal_len_img_channels(sdata_blobs):
200-
with pytest.raises(ValueError, match="Cmap length"):
200+
with pytest.raises(ValueError, match="If 'cmap' is provided, its length must match the number of channels."):
201201
sdata_blobs.pl.render_images(element="blobs_image", cmap=["Reds", "Blues"]).pl.show()
202202

203203

@@ -212,5 +212,5 @@ def test_fail_invalid_multichannel_strategy(sdata_multichannel):
212212

213213

214214
def test_fail_channel_index_out_of_range(sdata_blobs):
215-
with pytest.raises(IndexError, match="Invalid channel(s):"):
215+
with pytest.raises(ValueError, match="Invalid channel(s):"):
216216
sdata_blobs.pl.render_images(element="blobs_image", channel=10).pl.show()

0 commit comments

Comments
 (0)