From 8ac316242524ff408e240e26f818fd579b61519e Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 8 Sep 2018 12:14:55 +0200 Subject: [PATCH] Call modeman.init() in mode_manager fixture --- tests/helpers/fixtures.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/helpers/fixtures.py b/tests/helpers/fixtures.py index 5ce081e3b..9ee2d2bd5 100644 --- a/tests/helpers/fixtures.py +++ b/tests/helpers/fixtures.py @@ -455,9 +455,8 @@ def fake_args(request): @pytest.fixture -def mode_manager(win_registry, config_stub, qapp): - mm = modeman.ModeManager(0) - objreg.register('mode-manager', mm, scope='window', window=0) +def mode_manager(win_registry, config_stub, key_config_stub, qapp): + mm = modeman.init(0, parent=qapp) yield mm objreg.delete('mode-manager', scope='window', window=0)