Files
shellgenius/tests/test_integration.py
7000pctAUTO 3f1771eccd
Some checks failed
CI / test (push) Has been cancelled
Fix test files to match implementation
2026-02-04 11:42:02 +00:00

33 lines
1.1 KiB
Python

"""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")