def METHOD_NAME(qtbot, mocker, monkeypatch):
    instance = Mark()
    mocker.patch.object(instance, "marked")
    mocker.patch.object(instance, "unmarked")
    mocker.patch("vimiv.utils.files.is_image", return_value=True)
    yield instance
    # TODO think about a proper mocking method
    Mark.instance = api.METHOD_NAME  # Reset objreg instance to the one from api