diff --git a/tests/integration/test_server.py b/tests/integration/test_server.py index f408ee1..33e0aa9 100644 --- a/tests/integration/test_server.py +++ b/tests/integration/test_server.py @@ -8,16 +8,13 @@ from mockapi.core.server_generator import MockServerGenerator from mockapi.core.config import Config -SAMPLE_SPEC_PATH = "examples/petstore.yaml" - - class TestMockServerIntegration: """Integration tests for mock server.""" @pytest.fixture - def sample_spec(self): + def sample_spec(self, sample_spec_path): """Load sample OpenAPI spec.""" - loader = SpecLoader(SAMPLE_SPEC_PATH) + loader = SpecLoader(sample_spec_path) return loader.load() @pytest.fixture @@ -67,4 +64,4 @@ class TestMockServerIntegration: assert len(schemas) > 0 assert "User" in schemas assert "Product" in schemas - assert "Order" in schemas + assert "Order" in schemas \ No newline at end of file