def METHOD_NAME(testing_metadata, mocker):
    get_env_dependencies = mocker.patch.object(jinja_context, "get_env_dependencies")
    get_env_dependencies.return_value = ["test 1.2.3 abc_0"], [], None
    pin = jinja_context.pin_compatible(testing_metadata, "test", exact=True)
    assert pin == "test 1.2.3 abc_0"