summaryrefslogtreecommitdiff
path: root/tests/unit/completion/test_models.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2018-11-29 11:21:07 +0100
committerFlorian Bruhin <me@the-compiler.org>2018-11-29 14:18:11 +0100
commit19628d0ae99bb738ed4dbe1dea42f6ac95f9e301 (patch)
treef2a91fdd65bafc37aeff7eef8304e618ae775c2a /tests/unit/completion/test_models.py
parent168bc3dc494c75ed540b2c1eb3b5306b682481bb (diff)
downloadqutebrowser-19628d0ae99bb738ed4dbe1dea42f6ac95f9e301.tar.gz
qutebrowser-19628d0ae99bb738ed4dbe1dea42f6ac95f9e301.zip
Move cmdutils.cmd_dict to objects.commands
Diffstat (limited to 'tests/unit/completion/test_models.py')
-rw-r--r--tests/unit/completion/test_models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/completion/test_models.py b/tests/unit/completion/test_models.py
index 28265689c..9e75daae8 100644
--- a/tests/unit/completion/test_models.py
+++ b/tests/unit/completion/test_models.py
@@ -27,11 +27,11 @@ from datetime import datetime
import pytest
from PyQt5.QtCore import QUrl
+from qutebrowser.misc import objects
from qutebrowser.completion import completer
from qutebrowser.completion.models import miscmodels, urlmodel, configmodel
from qutebrowser.config import configdata, configtypes
from qutebrowser.utils import usertypes
-from qutebrowser.commands import cmdutils
def _check_completions(model, expected):
@@ -66,7 +66,7 @@ def _check_completions(model, expected):
@pytest.fixture()
def cmdutils_stub(monkeypatch, stubs):
"""Patch the cmdutils module to provide fake commands."""
- return monkeypatch.setattr(cmdutils, 'cmd_dict', {
+ return monkeypatch.setattr(objects, 'commands', {
'quit': stubs.FakeCommand(name='quit', desc='quit qutebrowser'),
'open': stubs.FakeCommand(name='open', desc='open a url'),
'prompt-yes': stubs.FakeCommand(name='prompt-yes', deprecated=True),