Commit 112d2369 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][conftest] Create asset_type fixture as module fixture

parent 88561d0b
......@@ -32,6 +32,7 @@ import subprocess
import shutil
import importlib
from ..backend.assetmodel import AssetType
if sys.platform == "darwin":
prefix_folder = tempfile.mkdtemp(prefix=__name__, suffix=".prefix", dir="/tmp")
......@@ -42,6 +43,13 @@ else:
prefix = os.path.join(prefix_folder, "prefix")
@pytest.fixture(
scope="module", params=[item for item in AssetType if item is not AssetType.UNKNOWN]
)
def asset_type(request):
return request.param
@pytest.fixture(scope="module")
def test_prefix():
prefixes = [
......
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