💫 Toolkit to help you get started with SDD or any other process!
fix(integrations): declare OmpIntegration multi_install_safe (#3650)
Ali jawwade9dfe900f6e9
diff --git a/docs/reference/integrations.md b/docs/reference/integrations.mdindex 3d512854e..724cdf783 100644--- a/docs/reference/integrations.md+++ b/docs/reference/integrations.md@@ -275,6 +275,7 @@ The currently declared multi-install safe integrations are:| `junie` | `.junie/commands` || `kilocode` | `.kilocode/workflows` || `kiro-cli` | `.kiro/prompts` |+| `omp` | `.omp/commands` || `qodercli` | `.qoder/commands` || `qwen` | `.qwen/commands` || `shai` | `.shai/commands` |diff --git a/src/specify_cli/integrations/omp/__init__.py b/src/specify_cli/integrations/omp/__init__.pyindex 156583298..0a93237d4 100644--- a/src/specify_cli/integrations/omp/__init__.py+++ b/src/specify_cli/integrations/omp/__init__.py@@ -20,6 +20,7 @@ class OmpIntegration(MarkdownIntegration):"args": "$ARGUMENTS","extension": ".md",}+ multi_install_safe = Truedef build_exec_args(self,diff --git a/tests/integrations/test_integration_omp.py b/tests/integrations/test_integration_omp.pyindex 5b30b7607..07dd57336 100644--- a/tests/integrations/test_integration_omp.py+++ b/tests/integrations/test_integration_omp.py@@ -11,6 +11,12 @@ class TestOmpIntegration(MarkdownIntegrationTests):COMMANDS_SUBDIR = "commands"REGISTRAR_DIR = ".omp/commands"+ def test_multi_install_safe(self):+ # Omp writes only to its isolated, static root .omp/commands, disjoint+ # from every other integration, so it must be co-install safe (mirrors+ # qwen/shai/qodercli and the kiro-cli #3471 precedent).+ assert get_integration(self.KEY).multi_install_safe is True+def test_build_exec_args_uses_omp_json_mode(self):i = get_integration(self.KEY)