Fix tests

This commit is contained in:
Jonathan Springer 2015-11-20 14:30:46 -05:00
parent 4175b18507
commit d178aa1eec
2 changed files with 4 additions and 4 deletions

View File

@ -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'

View File

@ -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)