Skip to content

Commit f42f95a

Browse files
authored
Disable tests using background threads for sources (#2121)
1 parent ba2c0fd commit f42f95a

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

tests/unit/test_source.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def source_env(qapp, qtbot, monkeypatch, choose_file_dialog):
2424
qtbot.waitUntil(lambda: len(qapp.main_window.sourceTab.updateThreads) == 0, timeout=2000)
2525

2626

27+
@pytest.mark.skip(reason="prone to failure due to background thread")
2728
def test_source_add_remove(qapp, qtbot, monkeypatch, mocker, source_env):
2829
"""
2930
Tests adding and removing source to ensure expected behavior.
@@ -49,6 +50,7 @@ def test_source_add_remove(qapp, qtbot, monkeypatch, mocker, source_env):
4950
assert tab.sourceFilesWidget.rowCount() == 1
5051

5152

53+
@pytest.mark.skip(reason="prone to failure due to background thread")
5254
@pytest.mark.parametrize(
5355
"path, valid",
5456
[
@@ -82,6 +84,7 @@ def test_valid_and_invalid_source_paths(qapp, qtbot, mocker, source_env, path, v
8284
assert tab.sourceFilesWidget.rowCount() == 1
8385

8486

87+
@pytest.mark.skip(reason="prone to failure due to background thread")
8588
def test_sources_update(qapp, qtbot, mocker, source_env):
8689
"""
8790
Tests the source update button in the source tab
@@ -105,6 +108,7 @@ def test_sources_update(qapp, qtbot, mocker, source_env):
105108
assert update_path_info_spy.call_count == 2
106109

107110

111+
@pytest.mark.skip(reason="prone to failure due to background thread")
108112
def test_source_copy(qapp, qtbot, monkeypatch, mocker, source_env):
109113
"""
110114
Test source_copy() with and without an index passed.

0 commit comments

Comments
 (0)