Skip to content

Commit c1058d0

Browse files
committed
update rest to remove unittest
1 parent defeb07 commit c1058d0

4 files changed

Lines changed: 93 additions & 156 deletions

File tree

holoviews/tests/test_selection.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import holoviews as hv
66
from holoviews.core.options import Cycle, Store
77
from holoviews.element import ErrorBars, Points, Rectangles, Table, VSpan
8-
from holoviews.element.comparison import ComparisonTestCase
98
from holoviews.plotting.util import linear_gradient
109
from holoviews.selection import link_selections
1110
from holoviews.streams import SelectionXY
@@ -23,11 +22,11 @@
2322
box_region_color = linear_gradient(unselected_color, "#000000", 9)[3]
2423
hist_region_color = linear_gradient(unselected_color, "#000000", 9)[1]
2524

26-
class TestLinkSelections(ComparisonTestCase):
25+
class TestLinkSelections:
2726

2827
__test__ = False
2928

30-
def setUp(self):
29+
def setup_method(self):
3130
self.data = pd.DataFrame(
3231
{'x': [1, 2, 3],
3332
'y': [0, 3, 2],
@@ -804,16 +803,16 @@ class TestLinkSelectionsPlotly(TestLinkSelections):
804803

805804
__test__ = True
806805

807-
def setUp(self):
806+
def setup_method(self):
808807
try:
809808
import holoviews.plotting.plotly # noqa: F401
810809
except ImportError:
811810
pytest.skip("Plotly required to test plotly backend")
812-
super().setUp()
811+
super().setup_method()
813812
self._backend = Store.current_backend
814813
Store.set_current_backend('plotly')
815814

816-
def tearDown(self):
815+
def teardown_method(self):
817816
Store.current_backend = self._backend
818817

819818
def element_color(self, element, color_prop=None):
@@ -835,13 +834,13 @@ class TestLinkSelectionsBokeh(TestLinkSelections):
835834

836835
__test__ = True
837836

838-
def setUp(self):
837+
def setup_method(self):
839838
import holoviews.plotting.bokeh # noqa
840-
super().setUp()
839+
super().setup_method()
841840
self._backend = Store.current_backend
842841
Store.set_current_backend('bokeh')
843842

844-
def tearDown(self):
843+
def teardown_method(self):
845844
Store.current_backend = self._backend
846845

847846
def element_color(self, element):

0 commit comments

Comments
 (0)