'Set up mocks and read the test config.'

@pytest.fixture(autouse=True)
def patch_stuff(self, monkeypatch, stubs, config_stub, fake_keyconfig):

    monkeypatch.setattr('qutebrowser.keyinput.basekeyparser.usertypes.Timer', stubs.FakeTimer)
    config_stub.data = CONFIG
    monkeypatch.setattr(modeparsers, 'config', config_stub)
