Commit 0d92f17e authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][assetwidget] Refresh prefix between tests

This ensure that all needed assets are available for tests
parent b36b7a81
......@@ -48,6 +48,8 @@ from ..widgets.toolchaineditor import ToolchainEditor
from ..backend.assetmodel import AssetType
from ..backend.assetmodel import AssetModel
from .conftest import sync_prefix
@pytest.fixture()
def asset_type_prefix_entry_map():
......@@ -70,6 +72,11 @@ def asset_type_prefix_entry_map():
class TestAssetWidget:
"""Test that the AssetWidget works correctly"""
@pytest.fixture(autouse=True)
def synced_prefix(self):
"""Re sync the prefix between test"""
sync_prefix()
def test_matching_editor(
self, qtbot, test_prefix, beat_context, asset_type_prefix_entry_map
):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment