diff options
author | Florian Bruhin <git@the-compiler.org> | 2017-06-20 15:20:32 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2017-06-20 15:20:32 +0200 |
commit | cb5cd1a9103c7b4d78cd5674af46641de4cec32d (patch) | |
tree | ac2b11413ac7775529fde9b9b06f5f3fdd98034f | |
parent | 994e8c692f4357a5fa0529ca8fab5c1707699d5c (diff) | |
download | qutebrowser-cb5cd1a9103c7b4d78cd5674af46641de4cec32d.tar.gz qutebrowser-cb5cd1a9103c7b4d78cd5674af46641de4cec32d.zip |
Remove old test_commands.py
-rw-r--r-- | tests/unit/browser/test_commands.py | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/tests/unit/browser/test_commands.py b/tests/unit/browser/test_commands.py deleted file mode 100644 index 5a9d7a8da..000000000 --- a/tests/unit/browser/test_commands.py +++ /dev/null @@ -1,53 +0,0 @@ -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - -# Copyright 2015-2017 Florian Bruhin (The Compiler) <mail@qutebrowser.org> -# -# This file is part of qutebrowser. -# -# qutebrowser is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# qutebrowser is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>. - -import collections - -import pytest - -from qutebrowser.browser import commands -from qutebrowser.mainwindow import tabbedbrowser -from qutebrowser.utils import objreg -from qutebrowser.keyinput import modeman - - -ObjectsRet = collections.namedtuple('Dispatcher', ['tb', 'cd']) - -pytestmark = pytest.mark.usefixtures('cookiejar_and_cache') - - -@pytest.fixture -def objects(qtbot, default_config, key_config_stub, tab_registry, - host_blocker_stub): - """Fixture providing a CommandDispatcher and a fake TabbedBrowser.""" - win_id = 0 - modeman.init(win_id, parent=None) - tabbed_browser = tabbedbrowser.TabbedBrowser(win_id) - qtbot.add_widget(tabbed_browser) - objreg.register('tabbed-browser', tabbed_browser, scope='window', - window=win_id) - dispatcher = commands.CommandDispatcher(win_id, tabbed_browser) - objreg.register('command-dispatcher', dispatcher, scope='window', - window=win_id) - yield ObjectsRet(tabbed_browser, dispatcher) - - -@pytest.mark.skipif(True, reason="Work in progress") -def test_openurl(objects): - objects.cd.openurl('localhost') |