def test_foreach_default_factory():
    """Test that the default factory is called."""
    _ = Foreach.create(
        ForEachState.default_factory_list,
        lambda tag: text(tag.name),
    )
Test that the default factory is called.
tests/units/components/core/test_foreach.py