def test_apply_overwrites_error_overwrite_value_as_boolean_string():
    """Verify boolean conversion for invalid overwrite values."""
    context = {'key': True}
    overwrite_context = {'key': 'invalid'}
    with pytest.raises(ValueError):
        generate.apply_overwrites_to_context(context, overwrite_context)
Verify boolean conversion for invalid overwrite values.
tests/test_generate_context.py