Skip to content

Commit

Permalink
Try to fix core dump in travis
Browse files Browse the repository at this point in the history
Ref #282
  • Loading branch information
algorys committed Mar 23, 2018
1 parent 03b500a commit 6924444
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_panel_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from alignak_app.items.service import Service

from alignak_app.qobjects.panel import PanelQWidget
from alignak_app.qobjects.events.events import init_event_widget


class TestPanelQWidget(unittest2.TestCase):
Expand Down Expand Up @@ -144,6 +145,8 @@ def test_create_widget(self):
def test_spy_host(self):
"""Panel Add Spy Host"""

init_event_widget()

under_test = PanelQWidget()
under_test.initialize()

Expand Down Expand Up @@ -178,4 +181,4 @@ def test_update_panels(self):
under_test.tab_widget.widget(1).update_problems_data()

# There are only 9 services in CRITICAL condition
self.assertEqual('Problems (19)', under_test.tab_widget.tabText(1))
self.assertEqual('Problems (19)', under_test.tab_widget.tabText(1))

0 comments on commit 6924444

Please sign in to comment.