Call modeman.init() in mode_manager fixture
This commit is contained in:
parent
93eb05598e
commit
8ac3162425
@ -455,9 +455,8 @@ def fake_args(request):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def mode_manager(win_registry, config_stub, qapp):
|
def mode_manager(win_registry, config_stub, key_config_stub, qapp):
|
||||||
mm = modeman.ModeManager(0)
|
mm = modeman.init(0, parent=qapp)
|
||||||
objreg.register('mode-manager', mm, scope='window', window=0)
|
|
||||||
yield mm
|
yield mm
|
||||||
objreg.delete('mode-manager', scope='window', window=0)
|
objreg.delete('mode-manager', scope='window', window=0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user