6f4dd7b057b492379404c92b8f96fee20fdc1c74,tests/components/homekit/test_get_accessories.py,,test_not_supported_media_player,#,32
Before Change
def test_not_supported_media_player():
Test if mode isn"t supported and if no supported modes.
// selected mode for entity not supported
with pytest.raises(vol.Invalid):
entity_state = State("media_player.demo", "on")
get_accessory(None, entity_state, 2, {CONF_MODE: [ON_OFF]})
// no supported modes for entity
entity_state = State("media_player.demo", "on")
assert get_accessory(None, entity_state, 2, {}) is None
After Change
def test_not_supported_media_player():
Test if mode isn"t supported and if no supported modes.
// selected mode for entity not supported
config = {CONF_FEATURE_LIST: {FEATURE_ON_OFF: None} }
entity_state = State("media_player.demo", "on")
get_accessory(None, entity_state, 2, config) is None
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: home-assistant/home-assistant
Commit Name: 6f4dd7b057b492379404c92b8f96fee20fdc1c74
Time: 2018-05-28
Author: 30130371+cdce8p@users.noreply.github.com
File Name: tests/components/homekit/test_get_accessories.py
Class Name:
Method Name: test_not_supported_media_player
Project Name: descarteslabs/descarteslabs-python
Commit Name: 233a089604121931a7f9e8b3861ca4b691cc555d
Time: 2020-01-17
Author: stephen@descarteslabs.com
File Name: descarteslabs/catalog/tests/test_product.py
Class Name: TestProduct
Method Name: test_image_uploads
Project Name: dnouri/skorch
Commit Name: 53ef00376510ee9ba4506918db06b25dad4a7ea4
Time: 2017-07-31
Author: benjamin.bossan@ottogroup.com
File Name: inferno/tests/test_callbacks.py
Class Name: TestBestLoss
Method Name: test_init_other_keys
Project Name: stellargraph/stellargraph
Commit Name: 930ee153389b251603648831428ed4451a08f299
Time: 2020-01-27
Author: Huon.Wilson@data61.csiro.au
File Name: tests/core/test_stellargraph.py
Class Name:
Method Name: test_get_index_for_nodes