def test_apply_overwrites_invalid_overwrite(template_context) -> None:
    """Verify variables overwrite for list if variable not in list not ignored."""
    with pytest.raises(ValueError):
        generate.apply_overwrites_to_context(
            context=template_context, overwrite_context={'orientation': 'foobar'}
        )
Verify variables overwrite for list if variable not in list not ignored.
tests/test_generate_context.py