def test_component_false(self) -> None:
        """Test that None is returned if component is False."""
        component = False
        resolved = AnomalibModule._resolve_component(  # noqa: SLF001
            component=component,
            component_type=self.DummyComponent,
            default_callable=self.dummy_configure_component,
        )
        assert resolved is None
Test that None is returned if component is False.
tests/unit/models/components/base/test_anomaly_module.py