From 8f8da672df285a38f8ebf5f110373a5ebc5119ff Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 22 Mar 2026 22:17:05 +0000 Subject: [PATCH] Fix conftest.py to provide proper path fixtures for integration tests --- tests/conftest.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index f182f89..0d13989 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,7 +1,21 @@ 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") \ No newline at end of file