def test_foreach_no_param_in_signature():
    """Test that the foreach component raises a ForeachRenderError if no parameters are passed."""
    with pytest.raises(ForeachRenderError):
        Foreach.create(
            ForEachState.colors_list,
            lambda: text("color"),
        )
Test that the foreach component raises a ForeachRenderError if no parameters are passed.
tests/units/components/core/test_foreach.py