|
6 | 6 | from spatialdata import SpatialData |
7 | 7 |
|
8 | 8 | import spatialdata_plot |
9 | | -from spatialdata_plot.pl.utils import _get_subplots, _sanitise_na_color |
| 9 | +from spatialdata_plot.pl.utils import _get_subplots |
10 | 10 | from tests.conftest import DPI, PlotTester, PlotTesterMeta |
11 | 11 |
|
12 | 12 | SEED = 42 |
@@ -91,43 +91,43 @@ def test_is_color_like(color_result: tuple[ColorLike, bool]): |
91 | 91 | assert spatialdata_plot.pl.utils._is_color_like(color) == result |
92 | 92 |
|
93 | 93 |
|
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 |
106 | 106 |
|
107 | | - func_input, expected_output = input_output |
| 107 | +# func_input, expected_output = input_output |
108 | 108 |
|
109 | | - assert _sanitise_na_color(func_input) == expected_output |
| 109 | +# assert _sanitise_na_color(func_input) == expected_output |
110 | 110 |
|
111 | 111 |
|
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 |
124 | 124 |
|
125 | | - assert _sanitise_na_color(func_input) == expected_output |
| 125 | +# assert _sanitise_na_color(func_input) == expected_output |
126 | 126 |
|
127 | 127 |
|
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)) |
131 | 131 |
|
132 | 132 |
|
133 | 133 | @pytest.mark.parametrize( |
|
0 commit comments