Skip to content

Commit

Permalink
Fix problem read bad config
Browse files Browse the repository at this point in the history
  • Loading branch information
algorys committed Jul 17, 2016
1 parent ed19bda commit 89db785
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ def test_main(self):
self.assertIsNone(under_test.backend_data)
self.assertIsNone(under_test.indicator)

config = cfg.ConfigParser()
config.read('./etc/settings.cfg')
under_test.config = config

under_test.main()

self.assertIsNotNone(under_test.config)
self.assertIsNotNone(under_test.backend_data)
# self.assertIsNotNone(under_test.app_menu.hosts_up_item)
# self.assertIsNotNone(under_test.app_menu.hosts_down_item)
# self.assertIsNotNone(under_test.app_menu.quit_item)

def test_alignak_config(self):
# Assert Config is None before read
Expand Down

0 comments on commit 89db785

Please sign in to comment.