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

Before Change



    def init_recorder(self):
        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


        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: 3

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/test_history.py
Class Name: TestComponentHistory
Method Name: init_recorder


Project Name: azavea/raster-vision
Commit Name: f82da4f7e4c6e3aa6cb75cb55d98d6d806f2b47f
Time: 2018-09-17
Author: rdemanuele@gmail.com
File Name: src/rastervision/backend/backend_config.py
Class Name: BackendConfigBuilder
Method Name: with_model_defaults