test_static_module.py 711 B

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