From 3edffefff4ba104bbc51259b739b7349c38876e8 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 24 Jan 2015 14:31:58 +0100 Subject: [PATCH] Fix qutebrowser.misc tests. After the utils -> misc rename, we forgot an __init__.py, which means these tests did never run. --- qutebrowser/test/misc/__init__.py | 20 ++++++++++++++++++++ qutebrowser/test/misc/test_editor.py | 4 ++-- qutebrowser/test/misc/test_readline.py | 4 ++-- qutebrowser/test/misc/test_split.py | 4 ++-- 4 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 qutebrowser/test/misc/__init__.py diff --git a/qutebrowser/test/misc/__init__.py b/qutebrowser/test/misc/__init__.py new file mode 100644 index 000000000..cdb45eecc --- /dev/null +++ b/qutebrowser/test/misc/__init__.py @@ -0,0 +1,20 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + +# Copyright 2014-2015 Florian Bruhin (The Compiler) +# +# 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 . + +"""The qutebrowser test suite.""" diff --git a/qutebrowser/test/misc/test_editor.py b/qutebrowser/test/misc/test_editor.py index a1bb46a22..380df04a8 100644 --- a/qutebrowser/test/misc/test_editor.py +++ b/qutebrowser/test/misc/test_editor.py @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with qutebrowser. If not, see . -"""Tests for qutebrowser.utils.editor.""" +"""Tests for qutebrowser.misc.editor.""" # pylint: disable=protected-access @@ -29,7 +29,7 @@ from unittest import mock from PyQt5.QtCore import QProcess -from qutebrowser.utils import editor +from qutebrowser.misc import editor from qutebrowser.test import stubs diff --git a/qutebrowser/test/misc/test_readline.py b/qutebrowser/test/misc/test_readline.py index 631012ad6..0f869c689 100644 --- a/qutebrowser/test/misc/test_readline.py +++ b/qutebrowser/test/misc/test_readline.py @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with qutebrowser. If not, see . -"""Tests for qutebrowser.utils.readline.""" +"""Tests for qutebrowser.misc.readline.""" # pylint: disable=protected-access @@ -27,7 +27,7 @@ from unittest import mock from PyQt5.QtWidgets import QLineEdit -from qutebrowser.utils import readline +from qutebrowser.misc import readline from qutebrowser.test import stubs diff --git a/qutebrowser/test/misc/test_split.py b/qutebrowser/test/misc/test_split.py index 819e80a35..354c03b16 100644 --- a/qutebrowser/test/misc/test_split.py +++ b/qutebrowser/test/misc/test_split.py @@ -17,11 +17,11 @@ # You should have received a copy of the GNU General Public License # along with qutebrowser. If not, see . -"""Tests for qutebrowser.utils.split.""" +"""Tests for qutebrowser.misc.split.""" import unittest -from qutebrowser.utils import split +from qutebrowser.misc import split # Most tests copied from Python's shlex.