61909e873f894591419ef25015df8360650886c3,tests/components/recorder/test_init.py,TestRecorder,test_saving_event,#TestRecorder#,112
Before Change
self.hass.bus.fire(event_type, event_data)
self.hass.block_till_done()
recorder._INSTANCE.block_till_done()
db_events = recorder.execute(
recorder.query("Events").filter_by(
event_type=event_type))
After Change
assert len(events) == 1
event = events[0]
self.hass.data[DATA_INSTANCE].block_till_done()
with session_scope(hass=self.hass) as session:
db_events = list(session.query(Events).filter_by(
event_type=event_type))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: home-assistant/home-assistant
Commit Name: 61909e873f894591419ef25015df8360650886c3
Time: 2017-02-26
Author: paulus@paulusschoutsen.nl
File Name: tests/components/recorder/test_init.py
Class Name: TestRecorder
Method Name: test_saving_event
Project Name: home-assistant/home-assistant
Commit Name: 61909e873f894591419ef25015df8360650886c3
Time: 2017-02-26
Author: paulus@paulusschoutsen.nl
File Name: tests/components/recorder/test_init.py
Class Name: TestRecorder
Method Name: test_saving_state
Project Name: home-assistant/home-assistant
Commit Name: 61909e873f894591419ef25015df8360650886c3
Time: 2017-02-26
Author: paulus@paulusschoutsen.nl
File Name: tests/components/recorder/test_init.py
Class Name:
Method Name: _add_entities