38 lines
700 B
Python
38 lines
700 B
Python
"""Pytest configuration and fixtures."""
|
|
import pytest
|
|
from pathlib import Path
|
|
|
|
FIXTURES_DIR = Path(__file__).parent / "fixtures"
|
|
INPUT_DIR = FIXTURES_DIR / "input"
|
|
EXPECTED_DIR = FIXTURES_DIR / "expected"
|
|
|
|
|
|
@pytest.fixture
|
|
def simple_panel_pdf():
|
|
return INPUT_DIR / "simple_panel.pdf"
|
|
|
|
|
|
@pytest.fixture
|
|
def cabinet_basic_pdf():
|
|
return INPUT_DIR / "cabinet_basic.pdf"
|
|
|
|
|
|
@pytest.fixture
|
|
def panel_with_drilling_pdf():
|
|
return INPUT_DIR / "panel_with_drilling.pdf"
|
|
|
|
|
|
@pytest.fixture
|
|
def edge_cases_pdf():
|
|
return INPUT_DIR / "edge_cases.pdf"
|
|
|
|
|
|
@pytest.fixture
|
|
def all_fixture_pdfs():
|
|
return list(INPUT_DIR.glob("*.pdf"))
|
|
|
|
|
|
@pytest.fixture
|
|
def expected_dir():
|
|
return EXPECTED_DIR
|