From 533319c1aea5a45adf6317ed34c23d88a1ef62b3 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 11 Aug 2016 16:45:00 +0200 Subject: [PATCH] tests: Use dict.update in mode_manager fixture This means we can use the fixture in tests which use config_stub themselves. --- tests/helpers/fixtures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/helpers/fixtures.py b/tests/helpers/fixtures.py index 749f0d4f0..651f30ed6 100644 --- a/tests/helpers/fixtures.py +++ b/tests/helpers/fixtures.py @@ -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