1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-21 23:33:13 +00:00

Disable tests using background threads for sources (#2121)

This commit is contained in:
Manu 2024-11-10 08:36:34 +00:00 committed by GitHub
parent ba2c0fd7dd
commit f42f95a3be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -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.