"""Tests for CodexIntegration.""" from .test_integration_base_skills import SkillsIntegrationTests class TestCodexIntegration(SkillsIntegrationTests): KEY = "codex" FOLDER = ".agents/" COMMANDS_SUBDIR = "skills" REGISTRAR_DIR = ".agents/skills" CONTEXT_FILE = "AGENTS.md" class TestCodexAutoPromote: """--ai codex auto-promotes to integration path.""" def test_ai_codex_without_ai_skills_auto_promotes(self, tmp_path): """--ai codex (without --ai-skills) should auto-promote to integration.""" from typer.testing import CliRunner from specify_cli import app runner = CliRunner() result = runner.invoke(app, ["init", str(tmp_path / "test-proj"), "--ai", "codex"]) assert "--integration codex" in result.output