Skip to content

Commit b864d8e

Browse files
authored
test: lazy import directly_connect_edges and actual run test (#6909)
1 parent e44605b commit b864d8e

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

holoviews/tests/operation/test_datashader.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
AggregationOperation,
2929
aggregate,
3030
datashade,
31-
directly_connect_edges,
3231
dynspread,
3332
inspect,
3433
inspect_points,
@@ -1843,17 +1842,13 @@ def test_stack_saturate_compositor_reverse(self):
18431842
assert_element_equal(combined, self.rgb2)
18441843

18451844

1846-
class GraphBundlingTests:
1847-
def setup_method(self):
1848-
if DATASHADER_VERSION <= (0, 7, 0):
1849-
pytest.skip("Regridding operations require datashader>=0.7.0")
1850-
self.source = np.arange(8)
1851-
self.target = np.zeros(8)
1852-
self.graph = hv.Graph(((self.source, self.target),))
1845+
def test_directly_connect_paths(bokeh_backend):
1846+
# Import here to avoid slow collect time
1847+
from holoviews.operation._datashader_bundling import directly_connect_edges
18531848

1854-
def test_directly_connect_paths(self):
1855-
direct = directly_connect_edges(self.graph)._split_edgepaths
1856-
assert_element_equal(direct, self.graph.edgepaths)
1849+
graph = hv.Graph(((np.arange(8), np.zeros(8)),))
1850+
direct = directly_connect_edges(graph)._split_edgepaths
1851+
assert_element_equal(direct, graph.edgepaths)
18571852

18581853

18591854
class InspectorTests:

0 commit comments

Comments
 (0)