61909e873f894591419ef25015df8360650886c3,tests/components/recorder/test_init.py,TestRecorder,test_saving_state,#TestRecorder#,93
Before Change
self.hass.states.set(entity_id, state, attributes)
self.hass.block_till_done()
recorder._INSTANCE.block_till_done()
db_states = recorder.query("States")
states = recorder.execute(db_states)
After Change
assert len(db_states) == 1
state = db_states[0].to_native()
assert state == self.hass.states.get(entity_id)
def test_saving_event(self):
Test saving and restoring an event.
event_type = "EVENT_TEST"
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
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_state
Project Name: home-assistant/home-assistant
Commit Name: bc0eb9bf32f6493847e291e2506f99e0a0d2ce24
Time: 2021-03-19
Author: dk891@gmx.de
File Name: tests/components/uvc/test_camera.py
Class Name: TestUVCSetup
Method Name: test_setup_full_config
Project Name: home-assistant/home-assistant
Commit Name: 32318c6f1993a1381316eeae0392dfd7922b2a8d
Time: 2016-08-22
Author: pavoni@users.noreply.github.com
File Name: tests/components/sensor/test_template.py
Class Name: TestTemplateSensor
Method Name: test_template_syntax_error
Project Name: home-assistant/home-assistant
Commit Name: eac67fd97134ab7d0c27e77d9742568b8194df0c
Time: 2016-08-22
Author: pavoni@users.noreply.github.com
File Name: tests/components/switch/test_template.py
Class Name: TestTemplateSwitch
Method Name: test_template_syntax_error
Project Name: home-assistant/home-assistant
Commit Name: 200c92708712061c9cac0689fc115652f1cf12a0
Time: 2017-12-18
Author: dan@dan-nixon.com
File Name: tests/components/binary_sensor/test_threshold.py
Class Name: TestThresholdSensor
Method Name: test_sensor_lower