blob: f683fca4b2f8d12a0dbcf9f1d7db3113ddd2c3cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# SPDX-FileCopyrightText: Copyright 2022, Arm Limited and/or its affiliates.
# SPDX-License-Identifier: Apache-2.0
"""Pytest conf module."""
from pathlib import Path
import pytest
from mlia.core.context import ExecutionContext
@pytest.fixture(scope="session", name="test_resources_path")
def fixture_test_resources_path() -> Path:
"""Return test resources path."""
return Path(__file__).parent / "test_resources"
@pytest.fixture(name="dummy_context")
def fixture_dummy_context(tmpdir: str) -> ExecutionContext:
"""Return dummy context fixture."""
return ExecutionContext(working_dir=tmpdir)
|