feat: pdf2cad
This commit is contained in:
37
tests/conftest.py
Normal file
37
tests/conftest.py
Normal file
@@ -0,0 +1,37 @@
|
||||
"""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
|
||||
Reference in New Issue
Block a user