'Fixture patching _git_str_subprocess with a GitStrSubprocessFake.'

@pytest.fixture
def git_str_subprocess_fake(self, mocker, monkeypatch):

    mocker.patch('qutebrowser.utils.version.subprocess', side_effect=AssertionError)
    fake = GitStrSubprocessFake()
    monkeypatch.setattr(version, '_git_str_subprocess', fake.func)
    return fake
