def METHOD_NAME(monkeypatch, resolution):
    def mock_merge_conflict_dialog(_window, _filename, handler):
        handler(resolution)
    monkeypatch.setattr(
        "gaphor.ui.filemanager.resolve_merge_conflict_dialog",
        mock_merge_conflict_dialog,
    )