diff --git a/tests/fixtures.py b/tests/fixtures.py index bebf04569..07e06ab2d 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -71,7 +71,12 @@ def close_remaining_widgets(): @pytest.fixture -def qtbot(qtbot, fail_if_open_message_boxes_left, close_remaining_widgets): +def msui_configs(tmp_path): + modify_config_file({"mss_dir": str(tmp_path)}) + + +@pytest.fixture +def qtbot(qtbot, fail_if_open_message_boxes_left, close_remaining_widgets, msui_configs): """Fixture that re-defines the qtbot fixture from pytest-qt with additional checks.""" yield qtbot # Wait for a while after the requesting test has finished. At time of writing this