Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/integrations/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ def test_cli_phase_label_includes_target(self):
)


class TestInitIntegrationFlag:
def test_unknown_integration_rejected(self, tmp_path):
class TestInitIntegrationFlag(IntegrationCatalogCliTestBase):
def test_unknown_integration_rejected(self, tmp_path, monkeypatch):
self._patch_catalog(monkeypatch, integrations=[])
from typer.testing import CliRunner
from specify_cli import app
runner = CliRunner()
Expand Down
5 changes: 3 additions & 2 deletions tests/specify_cli/integrations/test_command_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
runner, # noqa: F401
)

class TestIntegrationInstall:
class TestIntegrationInstall(IntegrationCatalogCliTestBase):
@pytest.mark.parametrize("existing_target", [True, False])
@pytest.mark.parametrize("allow_symlinks", [False, True])
@pytest.mark.parametrize("contained_target", [False, True])
Expand Down Expand Up @@ -82,7 +82,8 @@ def test_install_requires_speckit_project(self, tmp_path):
assert result.exit_code != 0
assert "Not a Spec Kit project" in result.output

def test_install_unknown_integration(self, tmp_path):
def test_install_unknown_integration(self, tmp_path, monkeypatch):
self._patch_catalog(monkeypatch, integrations=[])
project = _init_project(tmp_path)
old_cwd = os.getcwd()
try:
Expand Down
5 changes: 3 additions & 2 deletions tests/specify_cli/integrations/test_command_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _project_file_state(project):
}


class TestIntegrationSwitch:
class TestIntegrationSwitch(IntegrationCatalogCliTestBase):
@pytest.mark.skipif(
os.name == "nt", reason="POSIX execute bits are not meaningful on Windows"
)
Expand Down Expand Up @@ -357,7 +357,8 @@ def test_switch_requires_speckit_project(self, tmp_path):
assert result.exit_code != 0
assert "Not a Spec Kit project" in result.output

def test_switch_unknown_target(self, tmp_path):
def test_switch_unknown_target(self, tmp_path, monkeypatch):
self._patch_catalog(monkeypatch, integrations=[])
project = _init_project(tmp_path)
old_cwd = os.getcwd()
try:
Expand Down
Loading