From 9c533e1941db4677c7edd77c9c0034ab5463bfd6 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 3 Apr 2015 16:49:01 -0300 Subject: [PATCH] Moved tests to outside of qutebrowser package --- qutebrowser/test/__init__.py | 20 ------------------- qutebrowser/test/browser/__init__.py | 20 ------------------- qutebrowser/test/browser/http/__init__.py | 20 ------------------- qutebrowser/test/config/__init__.py | 1 - qutebrowser/test/keyinput/__init__.py | 1 - qutebrowser/test/misc/__init__.py | 20 ------------------- qutebrowser/test/utils/__init__.py | 20 ------------------- qutebrowser/test/utils/usertypes/__init__.py | 20 ------------------- .../browser/http/test_content_disposition.py | 0 .../test => test}/browser/http/test_http.py | 0 .../test => test}/browser/test_tabhistory.py | 0 .../test => test}/browser/test_webelem.py | 0 .../test => test}/config/test_config.py | 0 .../test => test}/config/test_configtypes.py | 0 {qutebrowser/test => test}/conftest.py | 2 +- {qutebrowser/test => test}/helpers.py | 0 .../keyinput/test_basekeyparser.py | 0 .../keyinput/test_modeparsers.py | 0 {qutebrowser/test => test}/log.py | 0 .../test => test}/mainwindow/conftest.py | 0 .../mainwindow/statusbar/test_percentage.py | 0 .../mainwindow/statusbar/test_progress.py | 0 .../mainwindow/statusbar/test_textbase.py | 0 .../test => test}/misc/test_crashdialog.py | 0 .../test => test}/misc/test_editor.py | 0 .../test => test}/misc/test_lineparser.py | 0 .../test => test}/misc/test_readline.py | 0 {qutebrowser/test => test}/misc/test_split.py | 0 {qutebrowser/test => test}/stubs.py | 0 {qutebrowser/test => test}/test_helpers.py | 0 {qutebrowser/test => test}/test_stubs.py | 0 {qutebrowser/test => test}/testfile | 0 .../test => test}/utils/test_debug.py | 0 .../test => test}/utils/test_jinja.py | 0 {qutebrowser/test => test}/utils/test_log.py | 0 .../test => test}/utils/test_qtutils.py | 0 .../test => test}/utils/test_standarddir.py | 0 .../test => test}/utils/test_urlutils.py | 0 .../test => test}/utils/test_utils.py | 0 .../utils/usertypes/test_enum.py | 0 .../utils/usertypes/test_neighborlist.py | 0 41 files changed, 1 insertion(+), 123 deletions(-) delete mode 100644 qutebrowser/test/__init__.py delete mode 100644 qutebrowser/test/browser/__init__.py delete mode 100644 qutebrowser/test/browser/http/__init__.py delete mode 100644 qutebrowser/test/config/__init__.py delete mode 100644 qutebrowser/test/keyinput/__init__.py delete mode 100644 qutebrowser/test/misc/__init__.py delete mode 100644 qutebrowser/test/utils/__init__.py delete mode 100644 qutebrowser/test/utils/usertypes/__init__.py rename {qutebrowser/test => test}/browser/http/test_content_disposition.py (100%) rename {qutebrowser/test => test}/browser/http/test_http.py (100%) rename {qutebrowser/test => test}/browser/test_tabhistory.py (100%) rename {qutebrowser/test => test}/browser/test_webelem.py (100%) rename {qutebrowser/test => test}/config/test_config.py (100%) rename {qutebrowser/test => test}/config/test_configtypes.py (100%) rename {qutebrowser/test => test}/conftest.py (97%) rename {qutebrowser/test => test}/helpers.py (100%) rename {qutebrowser/test => test}/keyinput/test_basekeyparser.py (100%) rename {qutebrowser/test => test}/keyinput/test_modeparsers.py (100%) rename {qutebrowser/test => test}/log.py (100%) rename {qutebrowser/test => test}/mainwindow/conftest.py (100%) rename {qutebrowser/test => test}/mainwindow/statusbar/test_percentage.py (100%) rename {qutebrowser/test => test}/mainwindow/statusbar/test_progress.py (100%) rename {qutebrowser/test => test}/mainwindow/statusbar/test_textbase.py (100%) rename {qutebrowser/test => test}/misc/test_crashdialog.py (100%) rename {qutebrowser/test => test}/misc/test_editor.py (100%) rename {qutebrowser/test => test}/misc/test_lineparser.py (100%) rename {qutebrowser/test => test}/misc/test_readline.py (100%) rename {qutebrowser/test => test}/misc/test_split.py (100%) rename {qutebrowser/test => test}/stubs.py (100%) rename {qutebrowser/test => test}/test_helpers.py (100%) rename {qutebrowser/test => test}/test_stubs.py (100%) rename {qutebrowser/test => test}/testfile (100%) rename {qutebrowser/test => test}/utils/test_debug.py (100%) rename {qutebrowser/test => test}/utils/test_jinja.py (100%) rename {qutebrowser/test => test}/utils/test_log.py (100%) rename {qutebrowser/test => test}/utils/test_qtutils.py (100%) rename {qutebrowser/test => test}/utils/test_standarddir.py (100%) rename {qutebrowser/test => test}/utils/test_urlutils.py (100%) rename {qutebrowser/test => test}/utils/test_utils.py (100%) rename {qutebrowser/test => test}/utils/usertypes/test_enum.py (100%) rename {qutebrowser/test => test}/utils/usertypes/test_neighborlist.py (100%) diff --git a/qutebrowser/test/__init__.py b/qutebrowser/test/__init__.py deleted file mode 100644 index cdb45eecc..000000000 --- a/qutebrowser/test/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# 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/browser/__init__.py b/qutebrowser/test/browser/__init__.py deleted file mode 100644 index 801293531..000000000 --- a/qutebrowser/test/browser/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - -# Copyright 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 . - -"""Tests for the qutebrowser.browser package.""" diff --git a/qutebrowser/test/browser/http/__init__.py b/qutebrowser/test/browser/http/__init__.py deleted file mode 100644 index e1643dbb8..000000000 --- a/qutebrowser/test/browser/http/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# 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 . - -"""Tests for the qutebrowser.browser.http module.""" diff --git a/qutebrowser/test/config/__init__.py b/qutebrowser/test/config/__init__.py deleted file mode 100644 index e55e9df60..000000000 --- a/qutebrowser/test/config/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Tests for qutebrowser.config.""" diff --git a/qutebrowser/test/keyinput/__init__.py b/qutebrowser/test/keyinput/__init__.py deleted file mode 100644 index 793f3d99b..000000000 --- a/qutebrowser/test/keyinput/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Tests for qutebrowser.keyinput.""" diff --git a/qutebrowser/test/misc/__init__.py b/qutebrowser/test/misc/__init__.py deleted file mode 100644 index 667e8201d..000000000 --- a/qutebrowser/test/misc/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: - -# Copyright 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/utils/__init__.py b/qutebrowser/test/utils/__init__.py deleted file mode 100644 index 292d89a9d..000000000 --- a/qutebrowser/test/utils/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# 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 . - -"""Tests for the qutebrowser.utils package.""" diff --git a/qutebrowser/test/utils/usertypes/__init__.py b/qutebrowser/test/utils/usertypes/__init__.py deleted file mode 100644 index 9dc19e4ab..000000000 --- a/qutebrowser/test/utils/usertypes/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# 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 . - -"""Tests for qutebrowser.utils.usertype.""" diff --git a/qutebrowser/test/browser/http/test_content_disposition.py b/test/browser/http/test_content_disposition.py similarity index 100% rename from qutebrowser/test/browser/http/test_content_disposition.py rename to test/browser/http/test_content_disposition.py diff --git a/qutebrowser/test/browser/http/test_http.py b/test/browser/http/test_http.py similarity index 100% rename from qutebrowser/test/browser/http/test_http.py rename to test/browser/http/test_http.py diff --git a/qutebrowser/test/browser/test_tabhistory.py b/test/browser/test_tabhistory.py similarity index 100% rename from qutebrowser/test/browser/test_tabhistory.py rename to test/browser/test_tabhistory.py diff --git a/qutebrowser/test/browser/test_webelem.py b/test/browser/test_webelem.py similarity index 100% rename from qutebrowser/test/browser/test_webelem.py rename to test/browser/test_webelem.py diff --git a/qutebrowser/test/config/test_config.py b/test/config/test_config.py similarity index 100% rename from qutebrowser/test/config/test_config.py rename to test/config/test_config.py diff --git a/qutebrowser/test/config/test_configtypes.py b/test/config/test_configtypes.py similarity index 100% rename from qutebrowser/test/config/test_configtypes.py rename to test/config/test_configtypes.py diff --git a/qutebrowser/test/conftest.py b/test/conftest.py similarity index 97% rename from qutebrowser/test/conftest.py rename to test/conftest.py index 93287d046..6bef0824c 100644 --- a/qutebrowser/test/conftest.py +++ b/test/conftest.py @@ -28,5 +28,5 @@ def app_and_logging(qapp): Initializes our logging system and ensures that a QApplication is created and used by all tests. """ - from .log import init + from log import init init() diff --git a/qutebrowser/test/helpers.py b/test/helpers.py similarity index 100% rename from qutebrowser/test/helpers.py rename to test/helpers.py diff --git a/qutebrowser/test/keyinput/test_basekeyparser.py b/test/keyinput/test_basekeyparser.py similarity index 100% rename from qutebrowser/test/keyinput/test_basekeyparser.py rename to test/keyinput/test_basekeyparser.py diff --git a/qutebrowser/test/keyinput/test_modeparsers.py b/test/keyinput/test_modeparsers.py similarity index 100% rename from qutebrowser/test/keyinput/test_modeparsers.py rename to test/keyinput/test_modeparsers.py diff --git a/qutebrowser/test/log.py b/test/log.py similarity index 100% rename from qutebrowser/test/log.py rename to test/log.py diff --git a/qutebrowser/test/mainwindow/conftest.py b/test/mainwindow/conftest.py similarity index 100% rename from qutebrowser/test/mainwindow/conftest.py rename to test/mainwindow/conftest.py diff --git a/qutebrowser/test/mainwindow/statusbar/test_percentage.py b/test/mainwindow/statusbar/test_percentage.py similarity index 100% rename from qutebrowser/test/mainwindow/statusbar/test_percentage.py rename to test/mainwindow/statusbar/test_percentage.py diff --git a/qutebrowser/test/mainwindow/statusbar/test_progress.py b/test/mainwindow/statusbar/test_progress.py similarity index 100% rename from qutebrowser/test/mainwindow/statusbar/test_progress.py rename to test/mainwindow/statusbar/test_progress.py diff --git a/qutebrowser/test/mainwindow/statusbar/test_textbase.py b/test/mainwindow/statusbar/test_textbase.py similarity index 100% rename from qutebrowser/test/mainwindow/statusbar/test_textbase.py rename to test/mainwindow/statusbar/test_textbase.py diff --git a/qutebrowser/test/misc/test_crashdialog.py b/test/misc/test_crashdialog.py similarity index 100% rename from qutebrowser/test/misc/test_crashdialog.py rename to test/misc/test_crashdialog.py diff --git a/qutebrowser/test/misc/test_editor.py b/test/misc/test_editor.py similarity index 100% rename from qutebrowser/test/misc/test_editor.py rename to test/misc/test_editor.py diff --git a/qutebrowser/test/misc/test_lineparser.py b/test/misc/test_lineparser.py similarity index 100% rename from qutebrowser/test/misc/test_lineparser.py rename to test/misc/test_lineparser.py diff --git a/qutebrowser/test/misc/test_readline.py b/test/misc/test_readline.py similarity index 100% rename from qutebrowser/test/misc/test_readline.py rename to test/misc/test_readline.py diff --git a/qutebrowser/test/misc/test_split.py b/test/misc/test_split.py similarity index 100% rename from qutebrowser/test/misc/test_split.py rename to test/misc/test_split.py diff --git a/qutebrowser/test/stubs.py b/test/stubs.py similarity index 100% rename from qutebrowser/test/stubs.py rename to test/stubs.py diff --git a/qutebrowser/test/test_helpers.py b/test/test_helpers.py similarity index 100% rename from qutebrowser/test/test_helpers.py rename to test/test_helpers.py diff --git a/qutebrowser/test/test_stubs.py b/test/test_stubs.py similarity index 100% rename from qutebrowser/test/test_stubs.py rename to test/test_stubs.py diff --git a/qutebrowser/test/testfile b/test/testfile similarity index 100% rename from qutebrowser/test/testfile rename to test/testfile diff --git a/qutebrowser/test/utils/test_debug.py b/test/utils/test_debug.py similarity index 100% rename from qutebrowser/test/utils/test_debug.py rename to test/utils/test_debug.py diff --git a/qutebrowser/test/utils/test_jinja.py b/test/utils/test_jinja.py similarity index 100% rename from qutebrowser/test/utils/test_jinja.py rename to test/utils/test_jinja.py diff --git a/qutebrowser/test/utils/test_log.py b/test/utils/test_log.py similarity index 100% rename from qutebrowser/test/utils/test_log.py rename to test/utils/test_log.py diff --git a/qutebrowser/test/utils/test_qtutils.py b/test/utils/test_qtutils.py similarity index 100% rename from qutebrowser/test/utils/test_qtutils.py rename to test/utils/test_qtutils.py diff --git a/qutebrowser/test/utils/test_standarddir.py b/test/utils/test_standarddir.py similarity index 100% rename from qutebrowser/test/utils/test_standarddir.py rename to test/utils/test_standarddir.py diff --git a/qutebrowser/test/utils/test_urlutils.py b/test/utils/test_urlutils.py similarity index 100% rename from qutebrowser/test/utils/test_urlutils.py rename to test/utils/test_urlutils.py diff --git a/qutebrowser/test/utils/test_utils.py b/test/utils/test_utils.py similarity index 100% rename from qutebrowser/test/utils/test_utils.py rename to test/utils/test_utils.py diff --git a/qutebrowser/test/utils/usertypes/test_enum.py b/test/utils/usertypes/test_enum.py similarity index 100% rename from qutebrowser/test/utils/usertypes/test_enum.py rename to test/utils/usertypes/test_enum.py diff --git a/qutebrowser/test/utils/usertypes/test_neighborlist.py b/test/utils/usertypes/test_neighborlist.py similarity index 100% rename from qutebrowser/test/utils/usertypes/test_neighborlist.py rename to test/utils/usertypes/test_neighborlist.py