fdc373f27ef7d0bbec349119ff227028968672aa,tests/components/sensor/test_history_stats.py,TestHistoryStatsSensor,init_recorder,#TestHistoryStatsSensor#,205

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.hass.block_till_done()
        recorder._INSTANCE.block_till_done()

After Change



    def init_recorder(self):
        Initialize the recorder.
        init_recorder_component(self.hass)
        self.hass.start()
        recorder.get_instance().block_till_db_ready()
        self.hass.block_till_done()
        recorder.get_instance().block_till_done()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


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/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