def test_component_true(self) -> None:
        """Test that the default_callable is called if component is True."""
        component = True
        resolved = AnomalibModule._resolve_component(  # noqa: SLF001
            component=component,
            component_type=self.DummyComponent,
            default_callable=self.dummy_configure_component,
        )
        assert isinstance(resolved, self.DummyComponent)
        assert resolved.value == 1
Test that the default_callable is called if component is True.
tests/unit/models/components/base/test_anomaly_module.py