tests: Use dict.update in mode_manager fixture

This means we can use the fixture in tests which use config_stub
themselves.
This commit is contained in:
Florian Bruhin 2016-08-11 16:45:00 +02:00
parent 20517e9a8f
commit 533319c1ae

View File

@ -403,7 +403,7 @@ def fake_args():
@pytest.yield_fixture
def mode_manager(win_registry, config_stub, qapp):
config_stub.data = {'input': {'forward-unbound-keys': 'auto'}}
config_stub.data.update({'input': {'forward-unbound-keys': 'auto'}})
mm = modeman.ModeManager(0)
objreg.register('mode-manager', mm, scope='window', window=0)
yield mm