diff --git a/qutebrowser/test/utils/test_debug.py b/qutebrowser/test/utils/test_debug.py index daad21005..36d261297 100644 --- a/qutebrowser/test/utils/test_debug.py +++ b/qutebrowser/test/utils/test_debug.py @@ -31,16 +31,6 @@ from qutebrowser.utils import debug from qutebrowser.test import stubs -class QEnumKeyTests(unittest.TestCase): - - """Tests for qenum_key.""" - - def test_reconverted(self): - """Test passing a flag value which was re-converted to an enum.""" - # FIXME maybe this should return the right thing anyways? - debug.qenum_key(Qt, Qt.Alignment(int(Qt.AlignLeft))) - - class QFlagsKeyTests(unittest.TestCase): """Tests for qflags_key().""" diff --git a/qutebrowser/test/utils/test_debug/test_qenum_key.py b/qutebrowser/test/utils/test_debug/test_qenum_key.py index 09711b7ea..f98c58c34 100644 --- a/qutebrowser/test/utils/test_debug/test_qenum_key.py +++ b/qutebrowser/test/utils/test_debug/test_qenum_key.py @@ -17,10 +17,11 @@ # You should have received a copy of the GNU General Public License # along with qutebrowser. If not, see . -"""Tests for qutebrowser.utils.debug.""" +"""Tests for qutebrowser.utils.debug.qenum_key.""" import pytest +from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QStyle, QFrame from qutebrowser.utils import debug @@ -74,3 +75,12 @@ def test_unknown(): key = debug.qenum_key(QFrame, 0x1337, klass=QFrame.Shadow) assert key == '0x1337' + + +def test_reconverted(): + """Test passing a flag value which was re-converted to an enum.""" + + pytest.skip(msg="It is not clear what this test is supposed to do") + + # FIXME maybe this should return the right thing anyways? + debug.qenum_key(Qt, Qt.Alignment(int(Qt.AlignLeft)))