mirror of
https://github.com/borgbase/vorta
synced 2024-12-22 07:43:09 +00:00
Disable tests using background threads for sources (#2121)
This commit is contained in:
parent
ba2c0fd7dd
commit
f42f95a3be
2 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,7 @@ def source_env(qapp, qtbot, monkeypatch, choose_file_dialog):
|
|||
qtbot.waitUntil(lambda: len(qapp.main_window.sourceTab.updateThreads) == 0, timeout=2000)
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="prone to failure due to background thread")
|
||||
def test_source_add_remove(qapp, qtbot, monkeypatch, mocker, source_env):
|
||||
"""
|
||||
Tests adding and removing source to ensure expected behavior.
|
||||
|
@ -49,6 +50,7 @@ def test_source_add_remove(qapp, qtbot, monkeypatch, mocker, source_env):
|
|||
assert tab.sourceFilesWidget.rowCount() == 1
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="prone to failure due to background thread")
|
||||
@pytest.mark.parametrize(
|
||||
"path, valid",
|
||||
[
|
||||
|
@ -82,6 +84,7 @@ def test_valid_and_invalid_source_paths(qapp, qtbot, mocker, source_env, path, v
|
|||
assert tab.sourceFilesWidget.rowCount() == 1
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="prone to failure due to background thread")
|
||||
def test_sources_update(qapp, qtbot, mocker, source_env):
|
||||
"""
|
||||
Tests the source update button in the source tab
|
||||
|
@ -105,6 +108,7 @@ def test_sources_update(qapp, qtbot, mocker, source_env):
|
|||
assert update_path_info_spy.call_count == 2
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="prone to failure due to background thread")
|
||||
def test_source_copy(qapp, qtbot, monkeypatch, mocker, source_env):
|
||||
"""
|
||||
Test source_copy() with and without an index passed.
|
||||
|
|
Loading…
Reference in a new issue