Remove former unittest class and skip test_reconverted
This commit is contained in:
parent
6b7ae70e6d
commit
b938318d5f
@ -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()."""
|
||||||
|
@ -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)))
|
||||||
|
Loading…
Reference in New Issue
Block a user