Skip to content

Commit

Permalink
Removed the xfail marker from some tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Feb 16, 2023
1 parent 3a978ba commit 4a1ce8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
6 changes: 1 addition & 5 deletions core/tests/widgets/test_optioncontainer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from unittest import expectedFailure, mock
from unittest import mock

import toga
from toga_dummy.utils import TestCase, TestStyle
Expand Down Expand Up @@ -36,15 +36,11 @@ def test_widget_created(self):
self.assertEqual(self.op_container._impl.interface, self.op_container)
self.assertActionPerformed(self.op_container, "create OptionContainer")

# This isn't a good test as it asserts behavior performed during setUp
@expectedFailure
def test_adding_container_invokes_add_content(self):
self.assertActionPerformedWith(
self.op_container, "add content", text=self.text, widget=self.widget._impl
)

# This isn't a good test as it asserts behavior performed during setUp
@expectedFailure
def test_widget_refresh_sublayouts(self):
# Clear event log to verify new set bounds for refresh
self.reset_event_log()
Expand Down
4 changes: 1 addition & 3 deletions core/tests/widgets/test_scrollcontainer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from unittest import expectedFailure, mock
from unittest import mock

import toga
from toga_dummy.utils import TestCase, TestStyle
Expand Down Expand Up @@ -37,8 +37,6 @@ def test_set_vertical_scroll_position(self):
self.assertEqual(self.sc.horizontal_position, 0)
self.assertEqual(self.sc.vertical_position, vertical_position)

# This isn't a good test as it asserts behavior performed during setUp
@expectedFailure
def test_set_content_with_widget(self):
self.assertEqual(
self.sc.content, None, "The default value of content should be None"
Expand Down
4 changes: 1 addition & 3 deletions core/tests/widgets/test_splitcontainer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from unittest import expectedFailure, mock
from unittest import mock

import toga
from toga_dummy.utils import TestCase, TestStyle
Expand Down Expand Up @@ -26,8 +26,6 @@ def test_setting_content_false_input(self):
with self.assertRaises(ValueError):
self.split.content = [toga.Box()]

# This isn't a good test as it asserts behavior performed during setUp
@expectedFailure
def test_setting_content_invokes_impl_method(self):
new_content = [toga.Box(style=TestStyle()), toga.Box(style=TestStyle())]
self.split.content = new_content
Expand Down

0 comments on commit 4a1ce8a

Please sign in to comment.