summaryrefslogtreecommitdiff
path: root/tests/unit/completion/test_models.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-07-29 18:52:20 +0200
committerFlorian Bruhin <me@the-compiler.org>2020-07-29 20:40:52 +0200
commite9cf19503da3f67d4c3cd0a4050fea2b5d4ab471 (patch)
tree6261542b4145046e3e43dc75bda0895ee317a263 /tests/unit/completion/test_models.py
parent5e2275502a2f1b8e31c599f4595c6221a680ff81 (diff)
downloadqutebrowser-e9cf19503da3f67d4c3cd0a4050fea2b5d4ab471.tar.gz
qutebrowser-e9cf19503da3f67d4c3cd0a4050fea2b5d4ab471.zip
Move current tab to CompletionInfo
That way it can be used by other future completions easily as well.
Diffstat (limited to 'tests/unit/completion/test_models.py')
-rw-r--r--tests/unit/completion/test_models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/completion/test_models.py b/tests/unit/completion/test_models.py
index f88a7657e..1c2d94f08 100644
--- a/tests/unit/completion/test_models.py
+++ b/tests/unit/completion/test_models.py
@@ -217,7 +217,8 @@ def web_history_populated(web_history):
def info(config_stub, key_config_stub):
return completer.CompletionInfo(config=config_stub,
keyconf=key_config_stub,
- win_id=0)
+ win_id=0,
+ cur_tab=None)
def test_command_completion(qtmodeltester, cmdutils_stub, configdata_stub,
@@ -1233,6 +1234,8 @@ def tab_with_history(fake_web_tab, tabbed_browser_stubs, info, monkeypatch):
tabbed_browser_stubs[0].widget.tabs = [tab]
tabbed_browser_stubs[0].widget.current_index = 0
+
+ info.cur_tab = tab
return tab