Remove blank lines in test_qflags_key

This commit is contained in:
Raphael Pierzina 2015-04-03 18:55:24 +02:00
parent 0b063ab4b4
commit 5b372aeee0

View File

@ -34,7 +34,6 @@ fixme = pytest.mark.xfail(reason="Broken but shouldn't generate a failure")
@fixme @fixme
def test_single(): def test_single():
"""Test with single value.""" """Test with single value."""
flags = debug.qflags_key(Qt, Qt.AlignTop) flags = debug.qflags_key(Qt, Qt.AlignTop)
assert flags == 'AlignTop' assert flags == 'AlignTop'
@ -42,14 +41,12 @@ def test_single():
@fixme @fixme
def test_multiple(): def test_multiple():
"""Test with multiple values.""" """Test with multiple values."""
flags = debug.qflags_key(Qt, Qt.AlignLeft | Qt.AlignTop) flags = debug.qflags_key(Qt, Qt.AlignLeft | Qt.AlignTop)
assert flags == 'AlignLeft|AlignTop' assert flags == 'AlignLeft|AlignTop'
def test_combined(): def test_combined():
"""Test with a combined value.""" """Test with a combined value."""
flags = debug.qflags_key(Qt, Qt.AlignCenter) flags = debug.qflags_key(Qt, Qt.AlignCenter)
assert flags == 'AlignHCenter|AlignVCenter' assert flags == 'AlignHCenter|AlignVCenter'
@ -57,14 +54,12 @@ def test_combined():
@fixme @fixme
def test_add_base(): def test_add_base():
"""Test with add_base=True.""" """Test with add_base=True."""
flags = debug.qflags_key(Qt, Qt.AlignTop, add_base=True) flags = debug.qflags_key(Qt, Qt.AlignTop, add_base=True)
assert flags == 'Qt.AlignTop' assert flags == 'Qt.AlignTop'
def test_int_noklass(): def test_int_noklass():
"""Test passing an int without explicit klass given.""" """Test passing an int without explicit klass given."""
with pytest.raises(TypeError): with pytest.raises(TypeError):
debug.qflags_key(Qt, 42) debug.qflags_key(Qt, 42)
@ -72,7 +67,6 @@ def test_int_noklass():
@fixme @fixme
def test_int(): def test_int():
"""Test passing an int with explicit klass given.""" """Test passing an int with explicit klass given."""
flags = debug.qflags_key(Qt, 0x0021, klass=Qt.Alignment) flags = debug.qflags_key(Qt, 0x0021, klass=Qt.Alignment)
assert flags == 'AlignLeft|AlignTop' assert flags == 'AlignLeft|AlignTop'