Remove former unittest class and skip test_reconverted

This commit is contained in:
Raphael Pierzina 2015-04-03 11:11:21 +02:00
parent 6b7ae70e6d
commit b938318d5f
2 changed files with 11 additions and 11 deletions

View File

@ -31,16 +31,6 @@ from qutebrowser.utils import debug
from qutebrowser.test import stubs 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): class QFlagsKeyTests(unittest.TestCase):
"""Tests for qflags_key().""" """Tests for qflags_key()."""

View File

@ -17,10 +17,11 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>. # along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
"""Tests for qutebrowser.utils.debug.""" """Tests for qutebrowser.utils.debug.qenum_key."""
import pytest import pytest
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QStyle, QFrame from PyQt5.QtWidgets import QStyle, QFrame
from qutebrowser.utils import debug from qutebrowser.utils import debug
@ -74,3 +75,12 @@ def test_unknown():
key = debug.qenum_key(QFrame, 0x1337, klass=QFrame.Shadow) key = debug.qenum_key(QFrame, 0x1337, klass=QFrame.Shadow)
assert key == '0x1337' 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)))