Fix test_cli.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:
@@ -15,11 +15,6 @@ class TestCLIIntegration:
|
||||
"""Create CLI runner."""
|
||||
return CliRunner()
|
||||
|
||||
@pytest.fixture
|
||||
def sample_spec_path(self):
|
||||
"""Path to sample spec file."""
|
||||
return "examples/petstore.yaml"
|
||||
|
||||
def test_validate_command(self, runner, sample_spec_path):
|
||||
"""Test validate command."""
|
||||
result = runner.invoke(cli, ["validate", sample_spec_path])
|
||||
|
||||
Reference in New Issue
Block a user