Skip to content

Commit 207f974

Browse files
authored
use a tmp dir instead of the default ~/mss (#2959)
1 parent efc5697 commit 207f974

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/fixtures.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ def close_remaining_widgets():
7171

7272

7373
@pytest.fixture
74-
def qtbot(qtbot, fail_if_open_message_boxes_left, close_remaining_widgets):
74+
def msui_configs(tmp_path):
75+
modify_config_file({"mss_dir": str(tmp_path)})
76+
77+
78+
@pytest.fixture
79+
def qtbot(qtbot, fail_if_open_message_boxes_left, close_remaining_widgets, msui_configs):
7580
"""Fixture that re-defines the qtbot fixture from pytest-qt with additional checks."""
7681
yield qtbot
7782
# Wait for a while after the requesting test has finished. At time of writing this

0 commit comments

Comments
 (0)