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
|
from mockapi.core.config import Config
|
||||||
|
|
||||||
|
|
||||||
SAMPLE_SPEC_PATH = "examples/petstore.yaml"
|
|
||||||
|
|
||||||
|
|
||||||
class TestMockServerIntegration:
|
class TestMockServerIntegration:
|
||||||
"""Integration tests for mock server."""
|
"""Integration tests for mock server."""
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def sample_spec(self):
|
def sample_spec(self, sample_spec_path):
|
||||||
"""Load sample OpenAPI spec."""
|
"""Load sample OpenAPI spec."""
|
||||||
loader = SpecLoader(SAMPLE_SPEC_PATH)
|
loader = SpecLoader(sample_spec_path)
|
||||||
return loader.load()
|
return loader.load()
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|||||||
Reference in New Issue
Block a user