81bdd41fdc8644214d60c7ecb7d981dd6f709abd,tests/components/onewire/test_binary_sensor.py,,,#,17
Before Change
from tests.common import mock_registry
MOCK_DEVICE_SENSORS = {
"12.111111111111": {
"inject_reads": [
b"DS2406", // read device type
],
BINARY_SENSOR_DOMAIN: [
{
"entity_id": "binary_sensor.12_111111111111_sensed_a",
"injected_value": b" 1",
"result": STATE_ON,
},
{
"entity_id": "binary_sensor.12_111111111111_sensed_b",
"injected_value": b" 0",
"result": STATE_OFF,
},
],
},
}
@pytest.mark.parametrize("device_id", MOCK_DEVICE_SENSORS.keys())
@patch("homeassistant.components.onewire.onewirehub.protocol.proxy")
After Change
from tests.common import mock_registry
MOCK_BINARY_SENSORS = {
key: value
for (key, value) in MOCK_OWPROXY_DEVICES.items()
if BINARY_SENSOR_DOMAIN in value
}
@pytest.mark.parametrize("device_id", MOCK_BINARY_SENSORS.keys())
@patch("homeassistant.components.onewire.onewirehub.protocol.proxy")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: home-assistant/home-assistant
Commit Name: 81bdd41fdc8644214d60c7ecb7d981dd6f709abd
Time: 2021-04-01
Author: 6771947+epenet@users.noreply.github.com
File Name: tests/components/onewire/test_binary_sensor.py
Class Name:
Method Name:
Project Name: pantsbuild/pants
Commit Name: b0a246995fc8b4eafa91bc123cf0c78e284573f5
Time: 2018-08-16
Author: ericarellano@me.com
File Name: src/python/pants/java/nailgun_executor.py
Class Name: NailgunExecutor
Method Name: _fingerprint
Project Name: tensorflow/tensorboard
Commit Name: 688aabd67aa6a6f098709643b0a5e672a7d0b01f
Time: 2019-06-21
Author: orionr@gmail.com
File Name: tensorboard/summary/writer/record_writer_test.py
Class Name: RecordWriterTest
Method Name: test_record_writer_roundtrip