Skip to content

Commit

Permalink
test update for white speech bubble
Browse files Browse the repository at this point in the history
  • Loading branch information
Allie Crevier committed Jul 31, 2019
1 parent f605b40 commit b2a1650
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/gui/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,9 +1101,12 @@ def test_SpeechBubble_init(mocker):
mock_connect = mocker.Mock()
mock_signal.connect = mock_connect

SpeechBubble('mock id', 'hello', mock_signal)
sb = SpeechBubble('mock id', 'hello', mock_signal)
ss = sb.styleSheet()

mock_label.assert_called_once_with('hello')
assert mock_connect.called
assert 'background-color' in ss


def test_SpeechBubble_update_text(mocker):
Expand Down Expand Up @@ -1187,9 +1190,7 @@ def test_MessageWidget_init(mocker):
mock_signal.connect = mock_connected

mw = MessageWidget('mock id', 'hello', mock_signal)
ss = mw.styleSheet()

assert 'background-color' in ss
assert mock_connected.called


Expand Down

0 comments on commit b2a1650

Please sign in to comment.