Skip to content

Commit

Permalink
Convert core Slider tests to pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsmith committed Feb 20, 2023
1 parent df5715b commit fdb306e
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 216 deletions.
1 change: 0 additions & 1 deletion core/src/toga/widgets/slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def __init__(
range=None,
tick_count=None,
on_change=None,
on_slide=None, # DEPRECATED!
on_press=None,
on_release=None,
enabled=True,
Expand Down
6 changes: 0 additions & 6 deletions core/tests/test_deprecated_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,6 @@ def test_selection_created(self):
self.assertEqual(widget._impl.interface, widget)
self.assertNotEqual(widget.factory, self.factory)

def test_slider_created(self):
with self.assertWarns(DeprecationWarning):
widget = toga.Slider(factory=self.factory)
self.assertEqual(widget._impl.interface, widget)
self.assertNotEqual(widget.factory, self.factory)

def test_split_container_created(self):
with self.assertWarns(DeprecationWarning):
widget = toga.SplitContainer(factory=self.factory)
Expand Down
Loading

0 comments on commit fdb306e

Please sign in to comment.