"""Integration tests for ShellGenius.""" class TestIntegration: def test_cli_commands_registered(self): """Test that all CLI commands are registered.""" from shellgenius.cli import main commands = list(main.commands.keys()) assert "generate" in commands assert "review" in commands assert "repl" in commands def test_module_imports(self): """Test that all modules can be imported.""" from shellgenius import __version__ assert __version__ == "0.1.0" def test_package_structure(self): """Test that package structure is correct.""" import shellgenius assert hasattr(shellgenius, "__version__") assert hasattr(shellgenius, "cli") assert hasattr(shellgenius, "config") assert hasattr(shellgenius, "generation") assert hasattr(shellgenius, "explainer") assert hasattr(shellgenius, "refactoring") assert hasattr(shellgenius, "history") assert hasattr(shellgenius, "ollama_client")