def METHOD_NAME(_patch_registry):  # type: ignore
    """
    Updating the registry
    """
    env_man = colrev.env.environment_manager.EnvironmentManager()
    test_user = {"email": "test@email.com"}
    env_man.update_registry(Unpaywall.SETTINGS["email"], test_user["email"])
    # Check with new env_man
    env_man = colrev.env.environment_manager.EnvironmentManager()
    cfg_email = env_man.get_settings_by_key("packages.pdf_get.colrev.unpaywall.email")
    assert test_user["email"] == cfg_email