def METHOD_NAME(mocker, updater):
    mock_get = mocker.patch("requests.get")
    mock_get.return_value.status_code = 200
    mock_get.return_value.json.return_value = {"version": __version__}
    assert not os.path.exists(updater.updater_file)
    updater.fetch(detach=False)
    mock_get.assert_called_once_with(Updater.URL, timeout=Updater.TIMEOUT_GET)
    assert os.path.isfile(updater.updater_file)
    with open(updater.updater_file, encoding="utf-8") as fobj:
        info = json.load(fobj)
    assert info["version"] == __version__