fdc373f27ef7d0bbec349119ff227028968672aa,tests/components/test_history.py,TestComponentHistory,init_recorder,#TestComponentHistory#,29
Before Change
Initialize the recorder.
db_uri = "sqlite://"
with patch("homeassistant.core.Config.path", return_value=db_uri):
setup_component(self.hass, recorder.DOMAIN, {
"recorder": {
"db_url": db_uri}})
self.hass.start()
recorder._INSTANCE.block_till_db_ready()
self.wait_recording_done()
After Change
Initialize the recorder.
init_recorder_component(self.hass)
self.hass.start()
recorder.get_instance().block_till_db_ready()
self.wait_recording_done()
def wait_recording_done(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: home-assistant/home-assistant
Commit Name: fdc373f27ef7d0bbec349119ff227028968672aa
Time: 2017-02-20
Author: kellerza@gmail.com
File Name: tests/components/test_history.py
Class Name: TestComponentHistory
Method Name: init_recorder
Project Name: home-assistant/home-assistant
Commit Name: fdc373f27ef7d0bbec349119ff227028968672aa
Time: 2017-02-20
Author: kellerza@gmail.com
File Name: tests/components/sensor/test_history_stats.py
Class Name: TestHistoryStatsSensor
Method Name: init_recorder
Project Name: home-assistant/home-assistant
Commit Name: fdc373f27ef7d0bbec349119ff227028968672aa
Time: 2017-02-20
Author: kellerza@gmail.com
File Name: tests/components/recorder/test_init.py
Class Name: BaseTestRecorder
Method Name: setUp
Project Name: home-assistant/home-assistant
Commit Name: fdc373f27ef7d0bbec349119ff227028968672aa
Time: 2017-02-20
Author: kellerza@gmail.com
File Name: tests/components/test_history.py
Class Name: TestComponentHistory
Method Name: init_recorder