Fix broken tests (#3704)

* Fix broken tests

* Lint
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2016-10-04 22:19:12 -07:00
1 parent dc53c21548
commit 4f0064b00e
3 files changed
+4 -8

No files matched your search

+3 -2
View File
@@ -79,8 +79,9 @@ def get_test_home_assistant(num_threads=None):
with patch.object(ha, 'async_create_timer', return_value=None):
with patch.object(ha, 'async_monitor_worker_pool',
return_value=None):
orig_start()
hass.block_till_done()
with patch.object(hass.loop, 'add_signal_handler'):
orig_start()
hass.block_till_done()
def stop_hass():
orig_stop()