a2e45b8fdde315b756691b4ae573ad55f55dc002,tests/components/test_recorder.py,TestRecorder,_add_test_states,#TestRecorder#,30

Before Change



    def _add_test_states(self):
        Add multiple states to the db for testing.
        now = int(time.time())
        five_days_ago = now - (60*60*24*5)
        attributes = {"test_attr": 5, "test_attr_10": "nice"}

        self.hass.pool.block_till_done()
        recorder._INSTANCE.block_till_done()

After Change


    def _add_test_states(self):
        Add multiple states to the db for testing.
        now = datetime.now()
        five_days_ago = now - timedelta(days=5)
        attributes = {"test_attr": 5, "test_attr_10": "nice"}

        self.hass.pool.block_till_done()
        recorder._INSTANCE.block_till_done()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: a2e45b8fdde315b756691b4ae573ad55f55dc002
Time: 2016-07-02
Author: rhooper@toybox.ca
File Name: tests/components/test_recorder.py
Class Name: TestRecorder
Method Name: _add_test_states


Project Name: UFAL-DSG/tgen
Commit Name: 33c643f35b2ce194f5b092bb81994a9668a02a8d
Time: 2014-10-31
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/parallel_percrank_train.py
Class Name: ParallelPerceptronRanker
Method Name: train


Project Name: home-assistant/home-assistant
Commit Name: a2e45b8fdde315b756691b4ae573ad55f55dc002
Time: 2016-07-02
Author: rhooper@toybox.ca
File Name: tests/components/test_recorder.py
Class Name: TestRecorder
Method Name: _add_test_events