forked from openlp/openlp
Fix tests
This commit is contained in:
parent
4175b18507
commit
d178aa1eec
@ -230,7 +230,7 @@ class TestLib(TestCase):
|
||||
# GIVEN: A set of mocked-out Qt classes
|
||||
mocked_byte_array = MagicMock()
|
||||
MockedQtCore.QByteArray.return_value = mocked_byte_array
|
||||
mocked_byte_array.toBase64.return_value = QtCore.QByteArray('base64mock')
|
||||
mocked_byte_array.toBase64.return_value = QtCore.QByteArray(b'base64mock')
|
||||
mocked_buffer = MagicMock()
|
||||
MockedQtCore.QBuffer.return_value = mocked_buffer
|
||||
MockedQtCore.QIODevice.WriteOnly = 'writeonly'
|
||||
|
@ -109,7 +109,7 @@ class TestRenderer(TestCase):
|
||||
"""
|
||||
# GIVEN: A line of with a space text and the logical split
|
||||
renderer = Renderer()
|
||||
renderer.empty_height = 25
|
||||
renderer.empty_height = 480
|
||||
given_line = 'a\n[---]\nb'
|
||||
expected_words = ['a<br>[---]<br>b']
|
||||
service_item = ServiceItem(None)
|
||||
@ -126,7 +126,7 @@ class TestRenderer(TestCase):
|
||||
"""
|
||||
# GIVEN: A line of with a space before the logical split
|
||||
renderer = Renderer()
|
||||
renderer.empty_height = 25
|
||||
renderer.empty_height = 480
|
||||
given_line = '\n [---]\n'
|
||||
expected_words = ['<br> [---]']
|
||||
service_item = ServiceItem(None)
|
||||
@ -143,7 +143,7 @@ class TestRenderer(TestCase):
|
||||
"""
|
||||
# GIVEN: A line of with a space after the logical split
|
||||
renderer = Renderer()
|
||||
renderer.empty_height = 25
|
||||
renderer.empty_height = 480
|
||||
given_line = '\n[---] \n'
|
||||
expected_words = ['<br>[---] ']
|
||||
service_item = ServiceItem(None)
|
||||
|
Loading…
Reference in New Issue
Block a user