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:
parent
20517e9a8f
commit
533319c1ae
@ -403,7 +403,7 @@ def fake_args():
|
|||||||
|
|
||||||
@pytest.yield_fixture
|
@pytest.yield_fixture
|
||||||
def mode_manager(win_registry, config_stub, qapp):
|
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)
|
mm = modeman.ModeManager(0)
|
||||||
objreg.register('mode-manager', mm, scope='window', window=0)
|
objreg.register('mode-manager', mm, scope='window', window=0)
|
||||||
yield mm
|
yield mm
|
||||||
|
Loading…
Reference in New Issue
Block a user