forked from openlp/openlp
lib done pep 8
This commit is contained in:
parent
f76f04994d
commit
c2215d1a1e
@ -315,9 +315,9 @@ class TestServiceItem(TestCase, TestMixin):
|
||||
|
||||
# THEN: We should get back a valid service item with optical media info
|
||||
assert service_item.is_valid is True, 'The service item should be valid'
|
||||
assert service_item.is_capable(ItemCapabilities.IsOptical) is True, 'The item should be Optical'
|
||||
assert service_item.start_time == 654.375, 'Start time should be 654.375'
|
||||
assert service_item.end_time == 672.069, 'End time should be 672.069'
|
||||
assert service_item.is_capable(ItemCapabilities.IsOptical) is True, 'The item should be Optical'
|
||||
assert service_item.start_time == 654.375, 'Start time should be 654.375'
|
||||
assert service_item.end_time == 672.069, 'End time should be 672.069'
|
||||
assert service_item.media_length == 17.694, 'Media length should be 17.694'
|
||||
|
||||
def test_service_item_load_song_and_audio_from_service(self):
|
||||
|
@ -149,7 +149,7 @@ class TestUi(TestCase):
|
||||
assert isinstance(action, QtWidgets.QAction)
|
||||
assert 'my text' == action.text()
|
||||
assert isinstance(action.icon(), QtGui.QIcon)
|
||||
assert 'my tooltip' == action.toolTip()
|
||||
assert 'my tooltip' == action.toolTip()
|
||||
assert 'my statustip' == action.statusTip()
|
||||
|
||||
def test_create_action_on_mac_osx(self):
|
||||
@ -187,7 +187,7 @@ class TestUi(TestCase):
|
||||
|
||||
# THEN: setIconVisibleInMenu should not be called
|
||||
assert 0 == mocked_action.setIconVisibleInMenu.call_count, \
|
||||
'setIconVisibleInMenu should not have been called'
|
||||
'setIconVisibleInMenu should not have been called'
|
||||
|
||||
def test_create_checked_disabled_invisible_action(self):
|
||||
"""
|
||||
@ -247,7 +247,7 @@ class TestUi(TestCase):
|
||||
find_and_set_in_combo_box(combo, 'Four', set_missing=False)
|
||||
|
||||
# THEN: The index should not have changed
|
||||
assert 1 == combo.currentIndex()
|
||||
assert 1 == combo.currentIndex()
|
||||
|
||||
# WHEN: We call the method with a non-existing value
|
||||
find_and_set_in_combo_box(combo, 'Four')
|
||||
|
Loading…
Reference in New Issue
Block a user