-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconftest.py
More file actions
33 lines (25 loc) · 829 Bytes
/
conftest.py
File metadata and controls
33 lines (25 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2023 The Foundry Visionmongers Ltd
"""
Shared fixtures for MyAssetManager pytest coverage.
"""
# pylint: disable=invalid-name,redefined-outer-name
# pylint: disable=missing-class-docstring,missing-function-docstring
import os
import pytest
from openassetio.test.manager import harness
@pytest.fixture
def harness_fixtures(base_dir):
"""
Provides the fixtues dict for MyAssetManager when used with
the openassetio.test.manager.apiComplianceSuite.
"""
fixtures_path = os.path.join(base_dir, "tests", "fixtures.py")
return harness.fixturesFromPyFile(fixtures_path)
@pytest.fixture
def base_dir():
"""
Provides the path to the base directory for the MyAssetManager
codebase.
"""
return os.path.dirname(os.path.dirname(__file__))