Remove unused imports
This commit is contained in:
parent
969b8f3200
commit
6037d44d0e
@ -26,7 +26,6 @@ import pytest
|
|||||||
from PyQt5.QtCore import pyqtSignal, pyqtSlot, QObject
|
from PyQt5.QtCore import pyqtSignal, pyqtSlot, QObject
|
||||||
|
|
||||||
from qutebrowser.browser import signalfilter
|
from qutebrowser.browser import signalfilter
|
||||||
from qutebrowser.utils import objreg
|
|
||||||
|
|
||||||
|
|
||||||
class Signaller(QObject):
|
class Signaller(QObject):
|
||||||
|
@ -25,7 +25,7 @@ import pytest
|
|||||||
from PyQt5.QtCore import QUrl
|
from PyQt5.QtCore import QUrl
|
||||||
|
|
||||||
from qutebrowser.commands import argparser, cmdexc
|
from qutebrowser.commands import argparser, cmdexc
|
||||||
from qutebrowser.utils import usertypes, objreg
|
from qutebrowser.utils import usertypes
|
||||||
|
|
||||||
|
|
||||||
Enum = usertypes.enum('Enum', ['foo', 'foo_bar'])
|
Enum = usertypes.enum('Enum', ['foo', 'foo_bar'])
|
||||||
|
@ -26,7 +26,7 @@ from PyQt5.QtCore import QUrl, QProcess
|
|||||||
|
|
||||||
from qutebrowser.config import configcommands
|
from qutebrowser.config import configcommands
|
||||||
from qutebrowser.commands import cmdexc
|
from qutebrowser.commands import cmdexc
|
||||||
from qutebrowser.utils import objreg, usertypes
|
from qutebrowser.utils import usertypes
|
||||||
from qutebrowser.misc import objects
|
from qutebrowser.misc import objects
|
||||||
|
|
||||||
|
|
||||||
@ -329,7 +329,7 @@ class TestEdit:
|
|||||||
|
|
||||||
commands.config_edit()
|
commands.config_edit()
|
||||||
|
|
||||||
mock.assert_called_once_with(unittest.mock.any)
|
mock.assert_called_once_with(unittest.mock.ANY)
|
||||||
assert not config_stub.val.content.javascript.enabled
|
assert not config_stub.val.content.javascript.enabled
|
||||||
|
|
||||||
def test_error(self, commands, config_stub, patch_editor, message_mock,
|
def test_error(self, commands, config_stub, patch_editor, message_mock,
|
||||||
|
Loading…
Reference in New Issue
Block a user