From b2a16500a6d343ed598978b223c35210c293fc51 Mon Sep 17 00:00:00 2001 From: Allie Crevier Date: Wed, 31 Jul 2019 15:10:18 -0700 Subject: [PATCH] test update for white speech bubble --- tests/gui/test_widgets.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/gui/test_widgets.py b/tests/gui/test_widgets.py index a1bd37df24..8c90791f15 100644 --- a/tests/gui/test_widgets.py +++ b/tests/gui/test_widgets.py @@ -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): @@ -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