Files
mockapi/tests/conftest.py
2026-03-22 22:17:05 +00:00

21 lines
453 B
Python

import pytest
import os
from pathlib import Path
@pytest.fixture
def temp_dir(tmp_path):
"""Provide a temporary directory."""
return tmp_path
@pytest.fixture
def examples_dir():
"""Provide the path to the examples directory."""
return Path(__file__).parent.parent / "examples"
@pytest.fixture
def sample_spec_path(examples_dir):
"""Provide the path to the sample petstore spec."""
return str(examples_dir / "petstore.yaml")