Fix test_cli.py to use sample_spec_path fixture
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2026-03-22 22:17:28 +00:00
parent 5a16a23fcb
commit dc5d0c4942

View File

@@ -15,11 +15,6 @@ class TestCLIIntegration:
"""Create CLI runner.""" """Create CLI runner."""
return CliRunner() 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): def test_validate_command(self, runner, sample_spec_path):
"""Test validate command.""" """Test validate command."""
result = runner.invoke(cli, ["validate", sample_spec_path]) result = runner.invoke(cli, ["validate", sample_spec_path])