File size: 644 Bytes
1a12965
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""Shared pytest fixtures pointing at the project's real bundled assets."""

from __future__ import annotations

from pathlib import Path

import pytest

PROJECT_ROOT = Path(__file__).resolve().parents[1]


@pytest.fixture(scope="session")
def project_root() -> Path:
    return PROJECT_ROOT


@pytest.fixture(scope="session")
def image_dir(project_root: Path) -> Path:
    return project_root / "image"


@pytest.fixture(scope="session")
def dataset_dir(project_root: Path) -> Path:
    return project_root / "dataset"


@pytest.fixture(scope="session")
def annotations_dir(project_root: Path) -> Path:
    return project_root / "annotations"