def test_value_error_if_key_missing_in_context(replay_test_dir, template_name) -> None:
    """Test that replay.dump raises if the context does not contain a key \
    named 'cookiecutter'."""
    with pytest.raises(ValueError):
        replay.dump(replay_test_dir, template_name, {'foo': 'bar'})
Test that replay.dump raises if the context does not contain a key     named 'cookiecutter'.
tests/replay/test_dump.py