def test_apply_overwrites_in_dictionaries(template_context) -> None:
    """Verify variable overwrite for lists nested in dictionary variables."""
    generate.apply_overwrites_to_context(
        context=template_context,
        overwrite_context={'deployments': {'preprod': ['eu'], 'prod': ['ap']}},
    )
    assert template_context['deployments']['preprod'] == ['eu']
    assert template_context['deployments']['prod'] == ['ap']
Verify variable overwrite for lists nested in dictionary variables.
tests/test_generate_context.py