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 12d1891
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/test_spy_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
from alignak_app.qobjects.events.spy import SpyQWidget
from alignak_app.qobjects.events.spy_list import SpyQListWidget

init_event_widget()


class TestSpyQWidgets(unittest2.TestCase):
"""
Expand All @@ -53,6 +51,8 @@ def setUpClass(cls):
def test_initialize(self):
"""Initialize SpyQWidget"""

init_event_widget()

under_test = SpyQWidget()

self.assertIsNotNone(under_test.spy_list_widget)
Expand All @@ -68,6 +68,8 @@ def test_initialize(self):
def test_remove_event(self):
"""Remove Spy Event Item"""

init_event_widget()

under_test = SpyQWidget()
under_test.initialize()

Expand Down Expand Up @@ -167,6 +169,8 @@ def test_send_spy_events(self):
def test_manage_host_events_with_wrong_row(self):
"""Manage Host Events With Wrong Row"""

init_event_widget()

under_test = SpyQWidget()
under_test.initialize()

Expand Down Expand Up @@ -208,6 +212,8 @@ def test_manage_host_events_with_wrong_row(self):
def test_manage_host_events_with_valid_rows(self):
"""Manage Host Events With Valid Rows"""

init_event_widget()

under_test = SpyQWidget()
under_test.initialize()

Expand Down

0 comments on commit 12d1891

Please sign in to comment.