Skip to content

Commit 2eaf623

Browse files
author
Sonja Stockhaus
committed
remove sanitise_na_color from test_utils
1 parent 67a8d4f commit 2eaf623

1 file changed

Lines changed: 31 additions & 31 deletions

File tree

tests/pl/test_utils.py

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from spatialdata import SpatialData
77

88
import spatialdata_plot
9-
from spatialdata_plot.pl.utils import _get_subplots, _sanitise_na_color
9+
from spatialdata_plot.pl.utils import _get_subplots
1010
from tests.conftest import DPI, PlotTester, PlotTesterMeta
1111

1212
SEED = 42
@@ -91,43 +91,43 @@ def test_is_color_like(color_result: tuple[ColorLike, bool]):
9191
assert spatialdata_plot.pl.utils._is_color_like(color) == result
9292

9393

94-
@pytest.mark.parametrize(
95-
"input_output",
96-
[
97-
(None, ("#FFFFFF00", True)),
98-
("default", ("#d3d3d3ff", False)),
99-
("red", ("#ff0000ff", True)),
100-
((1, 0, 0), ("#ff0000ff", True)),
101-
((1, 0, 0, 0.5), ("#ff000080", True)),
102-
],
103-
)
104-
def test_utils_sanitise_na_color(input_output):
105-
from spatialdata_plot.pl.utils import _sanitise_na_color
94+
# @pytest.mark.parametrize(
95+
# "input_output",
96+
# [
97+
# (None, ("#FFFFFF00", True)),
98+
# ("default", ("#d3d3d3ff", False)),
99+
# ("red", ("#ff0000ff", True)),
100+
# ((1, 0, 0), ("#ff0000ff", True)),
101+
# ((1, 0, 0, 0.5), ("#ff000080", True)),
102+
# ],
103+
# )
104+
# def test_utils_sanitise_na_color(input_output):
105+
# from spatialdata_plot.pl.utils import _sanitise_na_color
106106

107-
func_input, expected_output = input_output
107+
# func_input, expected_output = input_output
108108

109-
assert _sanitise_na_color(func_input) == expected_output
109+
# assert _sanitise_na_color(func_input) == expected_output
110110

111111

112-
@pytest.mark.parametrize(
113-
"input_output",
114-
[
115-
(None, ("#FFFFFF00", True)),
116-
("default", ("#d3d3d3ff", False)),
117-
("red", ("#ff0000ff", True)),
118-
((1, 0, 0), ("#ff0000ff", True)),
119-
((1, 0, 0, 0.5), ("#ff000080", True)),
120-
],
121-
)
122-
def test_utils_sanitise_na_color_accepts_valid_inputs(input_output):
123-
func_input, expected_output = input_output
112+
# @pytest.mark.parametrize(
113+
# "input_output",
114+
# [
115+
# (None, ("#FFFFFF00", True)),
116+
# ("default", ("#d3d3d3ff", False)),
117+
# ("red", ("#ff0000ff", True)),
118+
# ((1, 0, 0), ("#ff0000ff", True)),
119+
# ((1, 0, 0, 0.5), ("#ff000080", True)),
120+
# ],
121+
# )
122+
# def test_utils_sanitise_na_color_accepts_valid_inputs(input_output):
123+
# func_input, expected_output = input_output
124124

125-
assert _sanitise_na_color(func_input) == expected_output
125+
# assert _sanitise_na_color(func_input) == expected_output
126126

127127

128-
def test_utils_sanitise_na_color_fails_when_input_isnt_a_color():
129-
with pytest.raises(ValueError):
130-
_sanitise_na_color((1, 0))
128+
# def test_utils_sanitise_na_color_fails_when_input_isnt_a_color():
129+
# with pytest.raises(ValueError):
130+
# _sanitise_na_color((1, 0))
131131

132132

133133
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)