Fix test_server.py to use sample_spec_path fixture
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user