Skip to content

Commit

Permalink
Merge pull request #570 from frmdstryr/fix-focus-tests-on-linux
Browse files Browse the repository at this point in the history
Fix focus tests on linux
  • Loading branch information
MatthieuDartiailh authored Jan 28, 2025
2 parents 1f13f6a + f38fb89 commit e00ca76
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def wait_for_window_displayed(qtbot, window, timeout=1000):
msg = 'Window must be activated before waiting for display'
raise RuntimeError(msg)
qtbot.wait_exposed(window.proxy.widget, timeout=timeout)
qtbot.wait(25)


class EventObserver(Atom):
Expand Down
4 changes: 0 additions & 4 deletions tests/widgets/test_focus_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@
"""

@pytest.mark.skipif(
"CI" in os.environ and sys.platform.startswith("linux"),
reason='Skip on linux CI where setting up a windows manager is a nightmare'
)
def test_focus_tracking(enaml_qtbot, enaml_sleep):
"""Test moving the focus forward in the presence of a custom focus traversal.
Expand Down
5 changes: 0 additions & 5 deletions tests/widgets/test_focus_traversal.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@
"""


@pytest.mark.skipif(
"CI" in os.environ and sys.platform.startswith("linux"),
reason='Skip on linux CI where setting up a windows manager is a nightmare'
)
@pytest.mark.parametrize("widgets, mods",
[(["f4", "f3", "f6", "f2", "f7", "f5", "f1"], [False]*7),
(["f5", "f7", "f2", "f6", "f3", "f4", "f1"], [True]*7),
Expand Down

0 comments on commit e00ca76

Please sign in to comment.