test_bash_module.py 700 B

1234567891011121314151617181920
  1. """Tests for the Bash template module."""
  2. from __future__ import annotations
  3. import cli.modules.bash # noqa: F401 - import registers the module
  4. from cli.core.registry import registry
  5. from cli.modules.bash import BashModule
  6. def test_bash_module_metadata() -> None:
  7. """The Bash module should expose the expected CLI metadata."""
  8. assert BashModule.name == "bash"
  9. assert BashModule.description == "Manage Bash script and automation templates"
  10. def test_bash_module_registers_with_registry() -> None:
  11. """Importing the module should make the Bash kind discoverable."""
  12. registered_modules = dict(registry.iter_module_classes())
  13. assert registered_modules["bash"] is BashModule