repo_id
string
cross_repo_split
string
commit_index
int32
commit_sha
string
in_repo_split
string
test_file
string
file_split
string
split_group
string
lineno
int32
col_offset
int32
assertion_type
string
test_function
string
prefix
large_string
target
string
assertion_event_type
string
assertion_event_id
string
assertion_anchor
large_string
old_target
string
old_lineno
int32
old_col_offset
int32
xaviml/controllerx
train
54
d48291aacdfbc78dd89602d07f236a3236a11da6
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
239
13
pytest.raises
test_get_option
from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from cx_core import integration as integration_module from cx_core.controller import action from tests.test_utils import IntegrationMock, fake_fn @pytest.fixture def sut(fake_controller): fake_controller.multiple_cli...
ValueError)
added
7af7a4b399d7761c99225926115fe87e1f9b01dd765c903f08867417775ca62f
pytest.raises|test_get_option|from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from cx_core import integration as integration_module from cx_core.controller import action from tests.test_utils import IntegrationMock, fake_fn @pytest.fixture def sut(fake_controller): fake_c...
null
null
null
xaviml/controllerx
train
54
d48291aacdfbc78dd89602d07f236a3236a11da6
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
278
8
assert_*
test_get_integration
from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from cx_core import integration as integration_module from cx_core.controller import action from tests.test_utils import IntegrationMock, fake_fn @pytest.fixture def sut(fake_controller): fake_controller.multiple_cli...
args_expected)
added
18859e5aa6da79938141fcbeb7c143eff2149d5fb246157555807dad87267df6
assert_*|test_get_integration|from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from cx_core import integration as integration_module from cx_core.controller import action from tests.test_utils import IntegrationMock, fake_fn @pytest.fixture def sut(fake_controller): fake_c...
null
null
null
xaviml/controllerx
train
54
d48291aacdfbc78dd89602d07f236a3236a11da6
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
304
9
pytest.raises
test_get_actions_mapping_throwing_error
from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from cx_core import integration as integration_module from cx_core.controller import action from tests.test_utils import IntegrationMock, fake_fn @pytest.fixture def sut(fake_controller): fake_controller.multiple_cli...
ValueError)
added
0252b112a22d5e031dfb07b5a8faa40c79ad41fd0f2862f70726380f316f6cdc
pytest.raises|test_get_actions_mapping_throwing_error|from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from cx_core import integration as integration_module from cx_core.controller import action from tests.test_utils import IntegrationMock, fake_fn @pytest.fixture def sut(...
null
null
null
xaviml/controllerx
train
54
d48291aacdfbc78dd89602d07f236a3236a11da6
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
339
4
assert
test_handle_action
from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from cx_core import integration as integration_module from cx_core.controller import action from tests.test_utils import IntegrationMock, fake_fn @pytest.fixture def sut(fake_controller): fake_controller.multiple_cli...
expected_calls
added
aa74f6e82ccf97ea649e5cb50026785f9ee30b00fa595118891bea5eb1c3a5be
assert|test_handle_action|from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from cx_core import integration as integration_module from cx_core.controller import action from tests.test_utils import IntegrationMock, fake_fn @pytest.fixture def sut(fake_controller): fake_contr...
null
null
null
xaviml/controllerx
train
55
81f53d12f63610297826ad7b79573d051dbc136d
train
tests/unit_tests/cx_core/type/switch_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/switch_controller_test.py
27
4
assert_*
test_turn_on
import pytest from cx_core import SwitchController from cx_core.controller import TypeController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") c.args = {"switch": "switch.test"} await c.initialize() ...
"homeassistant/turn_on")
modified
6a0e33d4bb1c9e0d0894d6744b73d6697ad47a88af050a543a25ec072fd1b179
assert_*|test_turn_on|import pytest from cx_core import SwitchController from cx_core.controller import TypeController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") c.args = {"switch": "switch.test"} await c.initialize() r...
"switch/turn_on")
27
4
xaviml/controllerx
train
55
81f53d12f63610297826ad7b79573d051dbc136d
train
tests/unit_tests/cx_core/type/switch_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/switch_controller_test.py
36
4
assert_*
test_turn_off
import pytest from cx_core import SwitchController from cx_core.controller import TypeController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") c.args = {"switch": "switch.test"} await c.initialize() ...
"homeassistant/turn_off")
modified
5676fbeb01cad1930ba4110cd8c7ce0cafa9f2cf466c2cf464b779eb5d2262e1
assert_*|test_turn_off|import pytest from cx_core import SwitchController from cx_core.controller import TypeController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") c.args = {"switch": "switch.test"} await c.initialize() ...
"switch/turn_off")
34
4
xaviml/controllerx
train
55
81f53d12f63610297826ad7b79573d051dbc136d
train
tests/unit_tests/cx_core/type/switch_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/switch_controller_test.py
45
4
assert_*
test_toggle
import pytest from cx_core import SwitchController from cx_core.controller import TypeController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") c.args = {"switch": "switch.test"} await c.initialize() ...
"homeassistant/toggle")
modified
8796e395a4cc231fbf53443193624770bbf2ed8d3e6f8e7cc919fed70914ecaf
assert_*|test_toggle|import pytest from cx_core import SwitchController from cx_core.controller import TypeController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") c.args = {"switch": "switch.test"} await c.initialize() re...
"switch/toggle")
43
4
xaviml/controllerx
train
56
f6f49d9e93108407235a2896b79519764294472b
train
tests/unit_tests/cx_devices/phillips_test.py
train
xaviml/controllerx:tests/unit_tests/cx_devices/phillips_test.py
16
4
assert
test_zha_action_HueDimmerController
import pytest from cx_devices.phillips import HueDimmerController @pytest.mark.parametrize( "data, expected_action", [ ({"command": "on_long_release"}, "on_long_release"), ({"command": "down_press"}, "down_press"), ({"command": "off_hold"}, "off_hold"), ], ) def test_zha_action_Hue...
expected_action
modified
f4ef6bcd56f83f52e5ea6e44d6c0cca5ab236e1afd9892bd7235cc12e52b6eca
assert|test_zha_action_HueDimmerController|import pytest from cx_devices.phillips import HueDimmerController @pytest.mark.parametrize( "data, expected_action", [ ({"command": "on_long_release"}, "on_long_release"), ({"command": "down_press"}, "down_press"), ({"command": "off_hold"}, "off_hold"), ], ) def test_zha_actio...
expected_action
16
4
xaviml/controllerx
train
57
09ec3bf24fbcda4e344508094d158ac82e0a18e0
train
tests/integ_tests/integ_test.py
train
xaviml/controllerx:tests/integ_tests/integ_test.py
73
4
assert
test_integ_configs
import asyncio import glob from pathlib import Path from tests.test_utils import get_controller import pytest import yaml def get_integ_tests(): configs = [] test_yaml_files = glob.glob("**/*_test.yaml", recursive=True) for yaml_file in test_yaml_files: config_filepath = Path(yaml_file).parent / ...
expected_calls_count
modified
011dae0e390169623fc09b227191a6b5e39ab17e579a01fad76424b48064459b
assert|test_integ_configs|import asyncio import glob from pathlib import Path from tests.test_utils import get_controller import pytest import yaml def get_integ_tests(): configs = [] test_yaml_files = glob.glob("**/*_test.yaml", recursive=True) for yaml_file in test_yaml_files: config_filepath = Path(yaml_file).parent...
expected_calls_count
71
4
xaviml/controllerx
train
57
09ec3bf24fbcda4e344508094d158ac82e0a18e0
train
tests/unit_tests/cx_core/feature_support/light_support_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/feature_support/light_support_test.py
37
4
assert
test_init
import pytest from cx_core.feature_support import FeatureSupport from cx_core.feature_support.light import LightSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {LightSupport.BRIGHTNESS}), ( 57, { LightSupport.BRIGHTNESS, ...
expected_supported_features
modified
8a33e152b466e7666b165a22d485f7972477418e53b223f1f0d564b1bbe5a793
assert|test_init|import pytest from cx_core.feature_support import FeatureSupport from cx_core.feature_support.light import LightSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {LightSupport.BRIGHTNESS}), ( 57, { LightSupport.BRIGHTNESS, LightSupport.FLASH, LightSupport.COLOR, LightSuppor...
expected_supported_features
37
4
xaviml/controllerx
train
57
09ec3bf24fbcda4e344508094d158ac82e0a18e0
train
tests/unit_tests/cx_core/release_hold_controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/release_hold_controller_test.py
40
4
assert
test_release
import pytest from cx_core.controller import Controller, ReleaseHoldController from tests.test_utils import fake_fn class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass @pytest.fixture def sut(hass_mock): c = FakeReleaseHoldController() # type: ignore c.args = {} ...
not sut.on_hold
modified
44c8a6081af73d77f32027de50b1d8ac258415c1f5d3d27483e73fe6f7259237
assert|test_release|import pytest from cx_core.controller import Controller, ReleaseHoldController from tests.test_utils import fake_fn class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass @pytest.fixture def sut(hass_mock): c = FakeReleaseHoldController() # type: ignore c.args = {} c.delay...
not sut.on_hold
40
4
xaviml/controllerx
train
57
09ec3bf24fbcda4e344508094d158ac82e0a18e0
train
tests/unit_tests/cx_core/type/cover_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/cover_controller_test.py
118
4
assert_*
test_stop
from cx_core.feature_support.cover import CoverSupport import pytest from cx_core.controller import TypeController from cx_core import CoverController from tests.test_utils import fake_fn @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = CoverController() # type: ignore mocker.patch...
"cover/stop_cover")
modified
a1119c19402c773dd837860fcbb17549e4fa9304189e98dfc20eda2364f45136
assert_*|test_stop|from cx_core.feature_support.cover import CoverSupport import pytest from cx_core.controller import TypeController from cx_core import CoverController from tests.test_utils import fake_fn @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = CoverController() # type: ignore mocke...
"cover/stop_cover")
118
4
xaviml/controllerx
train
57
09ec3bf24fbcda4e344508094d158ac82e0a18e0
train
tests/unit_tests/cx_core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/media_player_controller_test.py
43
4
assert_*
test_play
import pytest from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from tests.test_utils import fake_fn @pytest.fixture @pytest.mark.asyncio async def sut(monkeypatch, hass_mock, mocker): c = Media...
"media_player/media_play")
modified
43a0e5a903da030b885fca8b5d0f2c86012531a341f3760c64ead009180910b2
assert_*|test_play|import pytest from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from tests.test_utils import fake_fn @pytest.fixture @pytest.mark.asyncio async def sut(monkeypatch, hass_mock, mocker...
"media_player/media_play")
43
4
xaviml/controllerx
train
57
09ec3bf24fbcda4e344508094d158ac82e0a18e0
train
tests/unit_tests/cx_core/type/switch_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/switch_controller_test.py
20
4
assert
test_initialize
import pytest from cx_core import SwitchController from cx_core.controller import TypeController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() # type: ignore mocker.patch.object(TypeController, "initialize") c.args = {"switch": "switch.test"} await c.i...
"switch.test"
modified
418d6b82993d33d6923e18447973a8d603d72f47bcec18121e96f79537cd76d5
assert|test_initialize|import pytest from cx_core import SwitchController from cx_core.controller import TypeController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() # type: ignore mocker.patch.object(TypeController, "initialize") c.args = {"switch": "switch.test"} await ...
"switch.test"
20
4
xaviml/controllerx
train
57
09ec3bf24fbcda4e344508094d158ac82e0a18e0
train
tests/unit_tests/cx_core/type_controller_test.py
test
xaviml/controllerx:tests/unit_tests/cx_core/type_controller_test.py
109
12
assert_*
test_get_entity_state
import pytest from cx_core.controller import TypeController class FakeTypeController(TypeController): def get_domain(self): return "domain" @pytest.fixture def sut(hass_mock): c = FakeTypeController() # type: ignore c.args = {} return c # All entities from '{entity}' must be from {domain...
entity_input)
modified
6d1fcb4726671984e2758e5be366247009d066a76471e60f22a576465d2f857e
assert_*|test_get_entity_state|import pytest from cx_core.controller import TypeController class FakeTypeController(TypeController): def get_domain(self): return "domain" @pytest.fixture def sut(hass_mock): c = FakeTypeController() # type: ignore c.args = {} return c # All entities from '{entity}' must be from {domain}...
entity_input)
109
12
xaviml/controllerx
train
57
09ec3bf24fbcda4e344508094d158ac82e0a18e0
train
tests/unit_tests/cx_devices/aqara_test.py
test
xaviml/controllerx:tests/unit_tests/cx_devices/aqara_test.py
36
4
assert
test_zha_action_WXKG01LMLightController
import pytest from cx_devices.aqara import MFKZQ01LMLightController, WXKG01LMLightController @pytest.mark.parametrize( "data, expected_action", [ ({"command": "shake"}, "shake"), ({"command": "knock"}, "knock"), ({"command": "slide"}, "slide"), ({"command": "flip", "args": {"fl...
expected_action
modified
66b95fcc31341795644e89de3303886691160c1e5115443208c4b16dcd856208
assert|test_zha_action_WXKG01LMLightController|import pytest from cx_devices.aqara import MFKZQ01LMLightController, WXKG01LMLightController @pytest.mark.parametrize( "data, expected_action", [ ({"command": "shake"}, "shake"), ({"command": "knock"}, "knock"), ({"command": "slide"}, "slide"), ({"command": "flip", "args":...
expected_action
36
4
xaviml/controllerx
train
58
088f7ef3abc128db42613bb13835eb7fb3f990c5
train
tests/unit_tests/cx_core/custom_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/custom_controller_test.py
167
4
assert
test_call_service_controller
from typing import Any, Dict, List, Tuple, Type import pytest from _pytest.monkeypatch import MonkeyPatch from cx_const import TypeActionsMapping from cx_core import ( CallServiceController, Controller, CoverController, LightController, MediaPlayerController, SwitchController, ) from cx_core.ty...
len(expected_calls)
added
403e4b526a7f5476fe6d8741b6b172a4ea7859bb0c41de9a336317ba3c00b022
assert|test_call_service_controller|from typing import Any, Dict, List, Tuple, Type import pytest from _pytest.monkeypatch import MonkeyPatch from cx_const import TypeActionsMapping from cx_core import ( CallServiceController, Controller, CoverController, LightController, MediaPlayerController, SwitchController, ) from...
null
null
null
xaviml/controllerx
train
58
088f7ef3abc128db42613bb13835eb7fb3f990c5
train
tests/unit_tests/cx_core/feature_support/feature_support_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/feature_support/feature_support_test.py
59
4
assert
test_is_supported
import pytest from cx_core.feature_support import Features, FeatureSupport, SupportedFeatures from cx_core.type_controller import TypeController @pytest.mark.parametrize( "number, features, expected_supported_features", [ (15, [1, 2, 4, 8, 16, 32, 64], {1, 2, 4, 8}), (16, [1, 2, 4, 8, 16, 32, ...
expected_is_supported
added
6dae025ae6036c24ad12d550ff9e56c5ffa4de164494b01b5666aee608e14d6f
assert|test_is_supported|import pytest from cx_core.feature_support import Features, FeatureSupport, SupportedFeatures from cx_core.type_controller import TypeController @pytest.mark.parametrize( "number, features, expected_supported_features", [ (15, [1, 2, 4, 8, 16, 32, 64], {1, 2, 4, 8}), (16, [1, 2, 4, 8, 16, 32, 6...
null
null
null
xaviml/controllerx
train
58
088f7ef3abc128db42613bb13835eb7fb3f990c5
train
tests/unit_tests/cx_core/feature_support/light_support_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/feature_support/light_support_test.py
33
4
assert
test_decode
import pytest from cx_core.feature_support import FeatureSupport, SupportedFeatures from cx_core.feature_support.light import LightSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {LightSupport.BRIGHTNESS}), ( 57, { LightSup...
expected_supported_features
added
128e4ac75bd4f831bd0371daee0fbf18998d226875f37c6b06925b5da57d8eff
assert|test_decode|import pytest from cx_core.feature_support import FeatureSupport, SupportedFeatures from cx_core.feature_support.light import LightSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {LightSupport.BRIGHTNESS}), ( 57, { LightSupport.BRIGHTNESS, LightSupport.FLASH, LightSuppo...
null
null
null
xaviml/controllerx
train
58
088f7ef3abc128db42613bb13835eb7fb3f990c5
train
tests/unit_tests/cx_core/feature_support/media_player_support_test.py
test
xaviml/controllerx:tests/unit_tests/cx_core/feature_support/media_player_support_test.py
34
4
assert
test_decode
import pytest from cx_core.feature_support import FeatureSupport, SupportedFeatures from cx_core.feature_support.media_player import MediaPlayerSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {MediaPlayerSupport.PAUSE}), (4, {MediaPlayerSupport.VOLUME_SET}), ...
expected_supported_features
added
c0790371f00e1d6f609ddd0f67cc096f92722d35738ac3673d5f6c88c4791641
assert|test_decode|import pytest from cx_core.feature_support import FeatureSupport, SupportedFeatures from cx_core.feature_support.media_player import MediaPlayerSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {MediaPlayerSupport.PAUSE}), (4, {MediaPlayerSupport.VOLUME_SET}), ( 57, { Med...
null
null
null
xaviml/controllerx
train
58
088f7ef3abc128db42613bb13835eb7fb3f990c5
train
tests/unit_tests/cx_core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/media_player_controller_test.py
55
4
assert_*
test_pause
from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from pytest_mock.plugin im...
"media_player/media_pause")
added
7a29ffda1613244d1cd58712c79a94f498cc94762d26a0b7dedc452fd045f47d
assert_*|test_pause|from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from py...
null
null
null
xaviml/controllerx
train
58
088f7ef3abc128db42613bb13835eb7fb3f990c5
train
tests/unit_tests/cx_core/type/switch_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/switch_controller_test.py
39
4
assert_*
test_toggle
import pytest from cx_core import SwitchController from cx_core.type_controller import Entity from pytest_mock.plugin import MockerFixture ENTITY_NAME = "switch.test" @pytest.fixture @pytest.mark.asyncio async def sut(): c = SwitchController() # type: ignore c.entity = Entity(ENTITY_NAME) return c @py...
"homeassistant/toggle")
added
e63b1903c6408928e1d4b1b52ecbfedfbff1d9eb2b69ae4469979fbbea99f16b
assert_*|test_toggle|import pytest from cx_core import SwitchController from cx_core.type_controller import Entity from pytest_mock.plugin import MockerFixture ENTITY_NAME = "switch.test" @pytest.fixture @pytest.mark.asyncio async def sut(): c = SwitchController() # type: ignore c.entity = Entity(ENTITY_NAME) return c ...
null
null
null
xaviml/controllerx
train
58
088f7ef3abc128db42613bb13835eb7fb3f990c5
train
tests/unit_tests/cx_core/type_controller_test.py
test
xaviml/controllerx:tests/unit_tests/cx_core/type_controller_test.py
76
8
assert
test_initialize
from typing import Any, Dict, List, Type import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core.controller import Controller from cx_core.feature_support import FeatureSupport from cx_core.type_controller import Entity, TypeController from pytest_mock.plugin import MockerFixture from tests.test_utils ...
ENTITY_NAME
added
18cf1b323536ffe773de8a6b4b8ac8466595a2f832eb028f04c823484b7bad02
assert|test_initialize|from typing import Any, Dict, List, Type import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core.controller import Controller from cx_core.feature_support import FeatureSupport from cx_core.type_controller import Entity, TypeController from pytest_mock.plugin import MockerFixture f...
null
null
null
xaviml/controllerx
train
58
088f7ef3abc128db42613bb13835eb7fb3f990c5
train
tests/unit_tests/cx_devices/devices_test.py
train
xaviml/controllerx:tests/unit_tests/cx_devices/devices_test.py
54
4
assert
test_devices
from typing import Callable, KeysView, List, Optional, Type import cx_devices as devices_module import pytest from cx_const import ActionEvent, TypeActionsMapping from cx_core import Controller from cx_core.controller import ReleaseHoldController from tests.test_utils import get_classes, get_controller def check_ma...
None
added
08d169b2ed573dbb4e4a1eef072c0d39890ea1bc7bb5ecb05e599015585e356b
assert|test_devices|from typing import Callable, KeysView, List, Optional, Type import cx_devices as devices_module import pytest from cx_const import ActionEvent, TypeActionsMapping from cx_core import Controller from cx_core.controller import ReleaseHoldController from tests.test_utils import get_classes, get_control...
null
null
null
xaviml/controllerx
train
59
5f605183b5bad27a47fdc5ad9587a49bc88c008c
train
tests/unit_tests/cx_core/feature_support/light_support_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/feature_support/light_support_test.py
42
8
assert
test_is_supported
from typing import List import pytest from cx_core.feature_support import FeatureSupport from cx_core.feature_support.light import LightSupport from cx_core.type_controller import TypeController @pytest.mark.parametrize( "number, expected_supported_features", [ (1, [LightSupport.BRIGHTNESS]), ...
await feature_support.is_supported(expected_supported_feature)
added
030dec0596c44e0f2489fa69e8153b6179d622da6aed9207ca53222ba82d0b47
assert|test_is_supported|from typing import List import pytest from cx_core.feature_support import FeatureSupport from cx_core.feature_support.light import LightSupport from cx_core.type_controller import TypeController @pytest.mark.parametrize( "number, expected_supported_features", [ (1, [LightSupport.BRIGHTNESS]), (...
null
null
null
xaviml/controllerx
train
59
5f605183b5bad27a47fdc5ad9587a49bc88c008c
train
tests/unit_tests/cx_core/feature_support/media_player_support_test.py
test
xaviml/controllerx:tests/unit_tests/cx_core/feature_support/media_player_support_test.py
43
8
assert
test_is_supported
from typing import List import pytest from cx_core.feature_support import FeatureSupport from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.type_controller import TypeController @pytest.mark.parametrize( "number, expected_supported_features", [ (1, [MediaPlayerSupport.PA...
await feature_support.is_supported(expected_supported_feature)
added
0c5e120d37fd9619ad3013ded509bcde7e6aef05c39e1263384a1e11a01b60eb
assert|test_is_supported|from typing import List import pytest from cx_core.feature_support import FeatureSupport from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.type_controller import TypeController @pytest.mark.parametrize( "number, expected_supported_features", [ (1, [MediaPlayerSupp...
null
null
null
xaviml/controllerx
train
59
5f605183b5bad27a47fdc5ad9587a49bc88c008c
train
tests/unit_tests/cx_core/release_hold_controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/release_hold_controller_test.py
45
4
assert
test_release
import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import Controller, ReleaseHoldController from pytest_mock import MockerFixture from tests.test_utils import fake_fn class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass def default_delay(self) -> int:...
not sut.on_hold
modified
18b273191be8cdacd335b93377be0ce76d16d504cd33203cae401d851f876039
assert|test_release|import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import Controller, ReleaseHoldController from pytest_mock import MockerFixture from tests.test_utils import fake_fn class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass def default_delay(self) -> int:...
not sut.on_hold
45
4
xaviml/controllerx
train
59
5f605183b5bad27a47fdc5ad9587a49bc88c008c
train
tests/unit_tests/cx_core/type/cover_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/cover_controller_test.py
137
8
assert_*
test_close
from typing import Any, Dict import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import CoverController from cx_core.controller import Controller from cx_core.feature_support.cover import CoverSupport from cx_core.type_controller import TypeController from pytest_mock.plugin import MockerFixture fr...
expected_service)
added
bf20d7c21cbbd8c79ad3285a58a8728a6bed49f75c8bbbf6843cbb0395988124
assert_*|test_close|from typing import Any, Dict import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import CoverController from cx_core.controller import Controller from cx_core.feature_support.cover import CoverSupport from cx_core.type_controller import TypeController from pytest_mock.plugin impor...
null
null
null
xaviml/controllerx
train
59
5f605183b5bad27a47fdc5ad9587a49bc88c008c
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
625
8
assert
test_hold_loop
from typing import Any, Dict, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper...
exceeded
modified
4499713a7f30a7d971d9116357d50206051876392cd339ca2de160505df2d1a7
assert|test_hold_loop|from typing import Any, Dict, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper...
exceeded
624
8
xaviml/controllerx
train
59
5f605183b5bad27a47fdc5ad9587a49bc88c008c
train
tests/unit_tests/cx_core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/media_player_controller_test.py
121
4
assert_*
test_hold
from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from pytest_mock.plugin im...
direction)
modified
cf464f05a2c256185df0a2136cf5439c629da627f172ff423e83eef967707b07
assert_*|test_hold|from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from pyt...
direction)
121
4
xaviml/controllerx
train
59
5f605183b5bad27a47fdc5ad9587a49bc88c008c
train
tests/unit_tests/cx_core/type_controller_test.py
test
xaviml/controllerx:tests/unit_tests/cx_core/type_controller_test.py
68
8
assert
test_initialize
from typing import Any, Dict, List, Type import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core.controller import Controller from cx_core.type_controller import Entity, TypeController from pytest_mock.plugin import MockerFixture from tests.test_utils import fake_fn, wrap_exetuction ENTITY_ARG = "my_e...
ENTITY_NAME
added
78216959f9cae02e6cbc3d0942a8a332b6fff9dcea05394aec0347cc14ad63a1
assert|test_initialize|from typing import Any, Dict, List, Type import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core.controller import Controller from cx_core.type_controller import Entity, TypeController from pytest_mock.plugin import MockerFixture from tests.test_utils import fake_fn, wrap_exetuctio...
null
null
null
xaviml/controllerx
train
59
5f605183b5bad27a47fdc5ad9587a49bc88c008c
train
tests/unit_tests/cx_devices/devices_test.py
train
xaviml/controllerx:tests/unit_tests/cx_devices/devices_test.py
53
4
assert
test_devices
from typing import Callable, KeysView, List, Optional, Type import cx_devices as devices_module import pytest from cx_const import ActionEvent, TypeActionsMapping from cx_core import Controller, ReleaseHoldController from tests.test_utils import get_classes, get_controller def check_mapping( mapping: Optional[T...
None
modified
cd524fdbbaa1b77c5a08a3d9178b6b6b5332bd9605e5c02f5b5c04e4e6b37cd5
assert|test_devices|from typing import Callable, KeysView, List, Optional, Type import cx_devices as devices_module import pytest from cx_const import ActionEvent, TypeActionsMapping from cx_core import Controller, ReleaseHoldController from tests.test_utils import get_classes, get_controller def check_mapping( mapping...
None
54
4
xaviml/controllerx
train
60
58c68c9ecadabd42cae0a1d14d7b184eee3c5bca
train
tests/test_utils.py
train
xaviml/controllerx:tests/test_utils.py
75
13
pytest.raises
import importlib import os import pkgutil from contextlib import contextmanager from typing import TYPE_CHECKING, Callable, Generator, Optional import pytest from _pytest._code.code import ExceptionInfo from mock import MagicMock from pytest_mock.plugin import MockerFixture if TYPE_CHECKING: from cx_core.controll...
exception)
modified
b287244f5d4d25ef47b9474b20181e62a03e075de619ca9b8fb4e507c9fc49b1
pytest.raises||import importlib import os import pkgutil from contextlib import contextmanager from typing import TYPE_CHECKING, Callable, Generator, Optional import pytest from _pytest._code.code import ExceptionInfo from mock import MagicMock from pytest_mock.plugin import MockerFixture if TYPE_CHECKING: from cx_core...
exception)
75
13
xaviml/controllerx
train
60
58c68c9ecadabd42cae0a1d14d7b184eee3c5bca
train
tests/unit_tests/cx_core/action-types/predefined_action_type_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/action-types/predefined_action_type_test.py
21
4
assert
test_get_action
import pytest from cx_const import ActionFunctionWithParams, TypeAction from cx_core.action_type.predefined_action_type import _get_action from tests.test_utils import fake_fn @pytest.mark.parametrize( "test_input, expected", [ (fake_fn, (fake_fn, tuple())), ((fake_fn, tuple()), (fake_fn, tup...
expected
added
7677b6033f28f7c786492b3f89893a5a69d5c6eda30f68d04d9688e43d9c2683
assert|test_get_action|import pytest from cx_const import ActionFunctionWithParams, TypeAction from cx_core.action_type.predefined_action_type import _get_action from tests.test_utils import fake_fn @pytest.mark.parametrize( "test_input, expected", [ (fake_fn, (fake_fn, tuple())), ((fake_fn, tuple()), (fake_fn, tuple()...
null
null
null
xaviml/controllerx
train
60
58c68c9ecadabd42cae0a1d14d7b184eee3c5bca
train
tests/unit_tests/cx_core/custom_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/custom_controller_test.py
164
8
assert_*
test_call_service_controller
from typing import Any, Dict, List, Tuple, Type import pytest from _pytest.monkeypatch import MonkeyPatch from appdaemon.plugins.hass.hassapi import Hass # type: ignore from cx_const import PredefinedActionsMapping from cx_core import ( CallServiceController, CoverController, LightController, MediaPla...
expected_service)
added
03d71b9807d89fcf575bd280598596b19318ffc81277c49a0b226242bd9bc589
assert_*|test_call_service_controller|from typing import Any, Dict, List, Tuple, Type import pytest from _pytest.monkeypatch import MonkeyPatch from appdaemon.plugins.hass.hassapi import Hass # type: ignore from cx_const import PredefinedActionsMapping from cx_core import ( CallServiceController, CoverController, Light...
null
null
null
xaviml/controllerx
train
60
58c68c9ecadabd42cae0a1d14d7b184eee3c5bca
train
tests/unit_tests/cx_core/release_hold_controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/release_hold_controller_test.py
44
4
assert
test_release
import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import ReleaseHoldController from cx_core.controller import Controller from pytest_mock import MockerFixture from tests.test_utils import fake_fn class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass d...
not sut.on_hold
modified
bb541c60cb3291bb4bab98ffd01c11f494649c5d282ca3d05f789bb69348926b
assert|test_release|import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import ReleaseHoldController from cx_core.controller import Controller from pytest_mock import MockerFixture from tests.test_utils import fake_fn class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass d...
not sut.on_hold
45
4
xaviml/controllerx
train
60
58c68c9ecadabd42cae0a1d14d7b184eee3c5bca
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
80
8
assert
test_init
from typing import Any, Dict, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper...
expected_name
added
40a0c7df274565f735c89f75c23b07ef3a6254e39dfd26b05a3fec5d344b4ce2
assert|test_init|from typing import Any, Dict, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from...
null
null
null
xaviml/controllerx
train
60
58c68c9ecadabd42cae0a1d14d7b184eee3c5bca
train
tests/unit_tests/cx_core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/media_player_controller_test.py
203
8
assert_*
test_change_source_list
from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from pytest_mock.plugin im...
"media_player/select_source")
modified
c57a58b8153cad4817b1449079a45f4ac437c7b666beef820c17bc5f3974badf
assert_*|test_change_source_list|from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import St...
"media_player/select_source")
203
8
xaviml/controllerx
train
60
58c68c9ecadabd42cae0a1d14d7b184eee3c5bca
train
tests/unit_tests/cx_core/type_controller_test.py
test
xaviml/controllerx:tests/unit_tests/cx_core/type_controller_test.py
171
12
assert_*
test_get_entity_state
from typing import Any, Dict, List, Type import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core.controller import Controller from cx_core.type_controller import Entity, TypeController from pytest_mock.plugin import MockerFixture from tests.test_utils import fake_fn, wrap_exetuction ENTITY_ARG = "my_e...
entity_input)
modified
ce631848f8b9bf73a5b51442ad4959594560f72ff833736f2aa435a557975de1
assert_*|test_get_entity_state|from typing import Any, Dict, List, Type import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core.controller import Controller from cx_core.type_controller import Entity, TypeController from pytest_mock.plugin import MockerFixture from tests.test_utils import fake_fn, wrap_e...
entity_input)
171
12
xaviml/controllerx
train
60
58c68c9ecadabd42cae0a1d14d7b184eee3c5bca
train
tests/unit_tests/cx_devices/aqara_test.py
test
xaviml/controllerx:tests/unit_tests/cx_devices/aqara_test.py
26
4
assert
test_zha_action_MFKZQ01LMLightController
import pytest from cx_core.integration import EventData from cx_devices.aqara import ( MFKZQ01LMLightController, WXKG01LMLightController, WXKG11LMRemoteLightController, WXKG11LMSensorSwitchLightController, ) @pytest.mark.parametrize( "data, expected_action", [ ({"command": "shake"}, "s...
expected_action
modified
5b9de3b677b611be851da013a5d64325170a904c787c79a9916c17c9f98a4cd0
assert|test_zha_action_MFKZQ01LMLightController|import pytest from cx_core.integration import EventData from cx_devices.aqara import ( MFKZQ01LMLightController, WXKG01LMLightController, WXKG11LMRemoteLightController, WXKG11LMSensorSwitchLightController, ) @pytest.mark.parametrize( "data, expected_action", [ ({"command"...
expected_action
25
4
xaviml/controllerx
train
61
bdbe7bbbd73fbf378de5d3596215294526f0ecc4
train
tests/unit_tests/cx_devices/rgb_genie_test.py
train
xaviml/controllerx:tests/unit_tests/cx_devices/rgb_genie_test.py
22
4
assert
test_zha_action_MFKZQ01LMLightController
import pytest from cx_core.integration import EventData from cx_devices.rgb_genie import ZB5122LightController @pytest.mark.parametrize( "data, expected_action", [ ({"command": "on"}, "on"), ({"command": "off"}, "off"), ({"command": "stop"}, "stop"), ({"command": "move_to_color...
expected_action
added
0ce2df07ebe41305879282cbdd88d51aade84946df92c56a8552c040f6d96a5a
assert|test_zha_action_MFKZQ01LMLightController|import pytest from cx_core.integration import EventData from cx_devices.rgb_genie import ZB5122LightController @pytest.mark.parametrize( "data, expected_action", [ ({"command": "on"}, "on"), ({"command": "off"}, "off"), ({"command": "stop"}, "stop"), ({"command": "move_to...
null
null
null
xaviml/controllerx
train
62
afb28541146690575aec3201b4d60d7259f3be22
train
tests/integ_tests/integ_test.py
train
xaviml/controllerx:tests/integ_tests/integ_test.py
93
4
assert
test_integ_configs
import asyncio import glob from pathlib import Path from typing import Any, Dict import pytest import yaml from appdaemon.plugins.hass.hassapi import Hass # type: ignore from cx_core.type_controller import TypeController from pytest_mock.plugin import MockerFixture from tests.test_utils import get_controller def g...
expected_calls_count
added
ec2a2be9d9c00dd1b93c3153d8de3c5f89b74459a32ee815b3bbd985be51c4eb
assert|test_integ_configs|import asyncio import glob from pathlib import Path from typing import Any, Dict import pytest import yaml from appdaemon.plugins.hass.hassapi import Hass # type: ignore from cx_core.type_controller import TypeController from pytest_mock.plugin import MockerFixture from tests.test_utils import...
null
null
null
xaviml/controllerx
train
62
afb28541146690575aec3201b4d60d7259f3be22
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
369
8
assert
test_get_integration
from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from cx_core.action_type.base im...
integration_name_expected
added
5154cf457ed29086e8276c8e0425413240c5fed4f95ed1a5e7bafd43a975807f
assert|test_get_integration|from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from ...
null
null
null
xaviml/controllerx
train
62
afb28541146690575aec3201b4d60d7259f3be22
train
tests/unit_tests/cx_core/custom_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/custom_controller_test.py
95
4
assert
test_custom_controllers
from typing import Any, Dict, List, Tuple, Type import pytest from _pytest.monkeypatch import MonkeyPatch from appdaemon.plugins.hass.hassapi import Hass # type: ignore from cx_const import PredefinedActionsMapping from cx_core import ( CallServiceController, CoverController, LightController, MediaPla...
expected_calls
modified
e3c7b11ddee89a2d42f879f1654fb53297ebb6980e016c0a5974151de59c04d7
assert|test_custom_controllers|from typing import Any, Dict, List, Tuple, Type import pytest from _pytest.monkeypatch import MonkeyPatch from appdaemon.plugins.hass.hassapi import Hass # type: ignore from cx_const import PredefinedActionsMapping from cx_core import ( CallServiceController, CoverController, LightControl...
expected_calls
95
4
xaviml/controllerx
train
62
afb28541146690575aec3201b4d60d7259f3be22
train
tests/unit_tests/cx_core/custom_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/custom_controller_test.py
164
8
assert_*
test_call_service_controller
from typing import Any, Dict, List, Tuple, Type import pytest from _pytest.monkeypatch import MonkeyPatch from appdaemon.plugins.hass.hassapi import Hass # type: ignore from cx_const import PredefinedActionsMapping from cx_core import ( CallServiceController, CoverController, LightController, MediaPla...
expected_service)
modified
6a4c4daa7c84451a04a025f98ca5102bb4c29fad045901747de4e6289a7f5b97
assert_*|test_call_service_controller|from typing import Any, Dict, List, Tuple, Type import pytest from _pytest.monkeypatch import MonkeyPatch from appdaemon.plugins.hass.hassapi import Hass # type: ignore from cx_const import PredefinedActionsMapping from cx_core import ( CallServiceController, CoverController, Light...
expected_service)
164
8
xaviml/controllerx
train
62
afb28541146690575aec3201b4d60d7259f3be22
train
tests/unit_tests/cx_core/integration/z2m_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/integration/z2m_test.py
54
8
assert_*
test_event_callback
import json from typing import Any, Dict, Optional import pytest from cx_core.controller import Controller from cx_core.integration.z2m import Z2MIntegration from pytest_mock import MockerFixture @pytest.mark.parametrize( "data, action_key, action_group, handle_action_called, expected_called_with", [ ...
expected_called_with)
added
0f78b3c938af0758013db8d7cb9a17db354c854860b9086437ef6b654c7f1bb6
assert_*|test_event_callback|import json from typing import Any, Dict, Optional import pytest from cx_core.controller import Controller from cx_core.integration.z2m import Z2MIntegration from pytest_mock import MockerFixture @pytest.mark.parametrize( "data, action_key, action_group, handle_action_called, expected_calle...
null
null
null
xaviml/controllerx
train
62
afb28541146690575aec3201b4d60d7259f3be22
train
tests/unit_tests/cx_core/integration/zha_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/integration/zha_test.py
54
8
assert_*
test_get_integrations
from typing import Dict import pytest from cx_core.controller import Controller from cx_core.integration.zha import ZHAIntegration from pytest_mock.plugin import MockerFixture @pytest.mark.parametrize( "command, args, expected_called_with", [ ("test_command", [0, 1, 2], "test_command_0_1_2"), ...
expected_called_with)
added
73a98b3077b13e6274f3d9eee224be4174171bfdada3f6507f5d60b698893a63
assert_*|test_get_integrations|from typing import Dict import pytest from cx_core.controller import Controller from cx_core.integration.zha import ZHAIntegration from pytest_mock.plugin import MockerFixture @pytest.mark.parametrize( "command, args, expected_called_with", [ ("test_command", [0, 1, 2], "test_command_0_1_...
null
null
null
xaviml/controllerx
train
62
afb28541146690575aec3201b4d60d7259f3be22
train
tests/unit_tests/cx_core/type_controller_test.py
test
xaviml/controllerx:tests/unit_tests/cx_core/type_controller_test.py
178
12
assert_*
test_get_entity_state
from typing import Any, Dict, List, Type import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core.controller import Controller from cx_core.type_controller import Entity, TypeController from pytest_mock.plugin import MockerFixture from tests.test_utils import fake_fn, wrap_exetuction ENTITY_ARG = "my_e...
"entity.test")
added
b6398970e1b478ee48c686c81f80458e0f08fd8f47befe9ac206a32b86e93d92
assert_*|test_get_entity_state|from typing import Any, Dict, List, Type import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core.controller import Controller from cx_core.type_controller import Entity, TypeController from pytest_mock.plugin import MockerFixture from tests.test_utils import fake_fn, wrap_e...
null
null
null
xaviml/controllerx
train
62
afb28541146690575aec3201b4d60d7259f3be22
train
tests/unit_tests/cx_devices/aqara_test.py
test
xaviml/controllerx:tests/unit_tests/cx_devices/aqara_test.py
63
4
assert
test_zha_action_WXKG11LMRemoteLightController
import pytest from cx_core.integration import EventData from cx_devices.aqara import ( MFKZQ01LMLightController, WXKG01LMLightController, WXKG11LMRemoteLightController, WXKG11LMSensorSwitchLightController, ) @pytest.mark.parametrize( "data, expected_action", [ ({"command": "shake"}, "s...
expected_action
added
a61d681501416e2d1b92cf1373f57aaf0a172990f622b9b98bad81592779d05a
assert|test_zha_action_WXKG11LMRemoteLightController|import pytest from cx_core.integration import EventData from cx_devices.aqara import ( MFKZQ01LMLightController, WXKG01LMLightController, WXKG11LMRemoteLightController, WXKG11LMSensorSwitchLightController, ) @pytest.mark.parametrize( "data, expected_action", [ ({"com...
null
null
null
xaviml/controllerx
train
63
2471db8bc74091013b4ada42ec75d2657a0ba7e0
train
tests/unit_tests/cx_core/custom_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/custom_controller_test.py
162
4
assert
test_call_service_controller
from typing import Any, Dict, List, Tuple, Type import pytest from _pytest.monkeypatch import MonkeyPatch from appdaemon.plugins.hass.hassapi import Hass # type: ignore from cx_const import PredefinedActionsMapping from cx_core import ( CallServiceController, CoverController, LightController, MediaPla...
len(expected_calls)
modified
72654e7099a1ac5eaead2d3e847ef1c3e6f41287869a5bbc1288e70b33803743
assert|test_call_service_controller|from typing import Any, Dict, List, Tuple, Type import pytest from _pytest.monkeypatch import MonkeyPatch from appdaemon.plugins.hass.hassapi import Hass # type: ignore from cx_const import PredefinedActionsMapping from cx_core import ( CallServiceController, CoverController, LightCo...
len(expected_calls)
162
4
xaviml/controllerx
train
63
2471db8bc74091013b4ada42ec75d2657a0ba7e0
train
tests/unit_tests/cx_core/custom_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/custom_controller_test.py
164
8
assert_*
test_call_service_controller
from typing import Any, Dict, List, Tuple, Type import pytest from _pytest.monkeypatch import MonkeyPatch from appdaemon.plugins.hass.hassapi import Hass # type: ignore from cx_const import PredefinedActionsMapping from cx_core import ( CallServiceController, CoverController, LightController, MediaPla...
expected_service)
modified
6d2e561083c298393f4f9bcccd4aaf9d804279efe83c4525da25fbea630a2eeb
assert_*|test_call_service_controller|from typing import Any, Dict, List, Tuple, Type import pytest from _pytest.monkeypatch import MonkeyPatch from appdaemon.plugins.hass.hassapi import Hass # type: ignore from cx_const import PredefinedActionsMapping from cx_core import ( CallServiceController, CoverController, Light...
expected_service)
164
8
xaviml/controllerx
train
63
2471db8bc74091013b4ada42ec75d2657a0ba7e0
train
tests/unit_tests/cx_core/integration/deconz_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/integration/deconz_test.py
38
4
assert_*
test_callback
from typing import Dict, Optional import pytest from cx_core.controller import Controller from cx_core.integration.deconz import DeCONZIntegration from pytest_mock.plugin import MockerFixture @pytest.mark.parametrize( "data, type, expected", [ ( {"id": 123, "event": 1002}, Non...
expected)
added
13a94320276194c753583cc9b5277836037a394d35b02a0df237e6ea4f950fc9
assert_*|test_callback|from typing import Dict, Optional import pytest from cx_core.controller import Controller from cx_core.integration.deconz import DeCONZIntegration from pytest_mock.plugin import MockerFixture @pytest.mark.parametrize( "data, type, expected", [ ( {"id": 123, "event": 1002}, None, 1002, ), ( {"id":...
null
null
null
xaviml/controllerx
train
63
2471db8bc74091013b4ada42ec75d2657a0ba7e0
train
tests/unit_tests/cx_core/integration/integration_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/integration/integration_test.py
8
4
assert
test_get_integrations
from cx_core import integration as integration_module from cx_core.controller import Controller def test_get_integrations(fake_controller: Controller): integrations = integration_module.get_integrations(fake_controller, {}) inteagration_names = {i.name for i in integrations} assert inteagration_names ==
{ "z2m", "zha", "deconz", "state", "mqtt", "lutron_caseta", }
modified
7d01ef97ba52cba14935c45eab58a6f1cab3e18e0e5129535442a225f2dde9e5
assert|test_get_integrations|from cx_core import integration as integration_module from cx_core.controller import Controller def test_get_integrations(fake_controller: Controller): integrations = integration_module.get_integrations(fake_controller, {}) inteagration_names = {i.name for i in integrations} assert inteagra...
{"z2m", "zha", "deconz", "state", "mqtt"}
8
4
xaviml/controllerx
train
63
2471db8bc74091013b4ada42ec75d2657a0ba7e0
train
tests/unit_tests/cx_core/integration/lutron_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/integration/lutron_test.py
46
4
assert_*
test_callback
from typing import Dict import pytest from cx_core.controller import Controller from cx_core.integration.lutron_caseta import LutronIntegration from pytest_mock.plugin import MockerFixture @pytest.mark.parametrize( "data, expected", [ ( { "serial": 28786608, ...
expected)
added
403e3d625c77121aadcc308067e6d811b60262bdb31d87cd98a9b16455bf907a
assert_*|test_callback|from typing import Dict import pytest from cx_core.controller import Controller from cx_core.integration.lutron_caseta import LutronIntegration from pytest_mock.plugin import MockerFixture @pytest.mark.parametrize( "data, expected", [ ( { "serial": 28786608, "type": "FourGroupRemote", "button_num...
null
null
null
xaviml/controllerx
train
63
2471db8bc74091013b4ada42ec75d2657a0ba7e0
train
tests/unit_tests/cx_core/integration/mqtt_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/integration/mqtt_test.py
34
8
assert_*
test_callback
from typing import Dict import pytest from cx_core.controller import Controller from cx_core.integration.mqtt import MQTTIntegration from pytest_mock.plugin import MockerFixture @pytest.mark.parametrize( "data, expected", [ ( {"payload": "click"}, "click", ), (...
expected)
added
be8101457ee0af7f290ffa36b3025b17b0dba6d1f68fd8dea7a3f3a9da8e472a
assert_*|test_callback|from typing import Dict import pytest from cx_core.controller import Controller from cx_core.integration.mqtt import MQTTIntegration from pytest_mock.plugin import MockerFixture @pytest.mark.parametrize( "data, expected", [ ( {"payload": "click"}, "click", ), ( {}, None, ), ], ) @pytest.mark.asyn...
null
null
null
xaviml/controllerx
train
63
2471db8bc74091013b4ada42ec75d2657a0ba7e0
train
tests/unit_tests/cx_core/integration/zha_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/integration/zha_test.py
54
8
assert_*
test_callback
from typing import Dict, Optional import pytest from cx_core.controller import Controller from cx_core.integration.zha import ZHAIntegration from pytest_mock.plugin import MockerFixture @pytest.mark.parametrize( "command, args, expected_called_with", [ ("test_command", [0, 1, 2], "test_command_0_1_2"...
expected_called_with)
added
2d300a5c76a9c5e671daeb01700e49c5f1075d4c371206e4c48c123b778ce472
assert_*|test_callback|from typing import Dict, Optional import pytest from cx_core.controller import Controller from cx_core.integration.zha import ZHAIntegration from pytest_mock.plugin import MockerFixture @pytest.mark.parametrize( "command, args, expected_called_with", [ ("test_command", [0, 1, 2], "test_command_0_...
null
null
null
xaviml/controllerx
train
63
2471db8bc74091013b4ada42ec75d2657a0ba7e0
train
tests/unit_tests/cx_devices/muller_licht_test.py
train
xaviml/controllerx:tests/unit_tests/cx_devices/muller_licht_test.py
46
4
assert
test_zha_action_MLI404002
import pytest from cx_core.integration import EventData from cx_devices.muller_licht import MLI404002LightController @pytest.mark.parametrize( "data, expected_action", [ ( {"command": "on", "args": []}, "on", ), ( {"command": "off", "args": []}, ...
expected_action
added
91000c3ec3ce2f48483459c56c85f2600a49b10361f0ae42bc0dcdc4bce053f8
assert|test_zha_action_MLI404002|import pytest from cx_core.integration import EventData from cx_devices.muller_licht import MLI404002LightController @pytest.mark.parametrize( "data, expected_action", [ ( {"command": "on", "args": []}, "on", ), ( {"command": "off", "args": []}, "off", ), ( {"command": "step", "args": [...
null
null
null
xaviml/controllerx
train
64
5031ae5084db49cc09992436ab2c6e2ca253c61a
train
tests/unit_tests/cx_core/release_hold_controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/release_hold_controller_test.py
85
4
assert
test_before_action
import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import ReleaseHoldController from cx_core.controller import Controller from pytest_mock import MockerFixture from tests.test_utils import fake_fn class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass d...
continue_call
added
2735860ee88690700867896812eb899847721b69adffd84cd94ee88ca3cc442b
assert|test_before_action|import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import ReleaseHoldController from cx_core.controller import Controller from pytest_mock import MockerFixture from tests.test_utils import fake_fn class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): ...
null
null
null
xaviml/controllerx
train
64
5031ae5084db49cc09992436ab2c6e2ca253c61a
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
234
4
assert
test_change_light_state
from typing import Any, Dict, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper...
expected_value_attribute
added
9b7cb8963ae3d0d865b60a9e5a2b0076b31d66f164e755772bb183493d71c291
assert|test_change_light_state|from typing import Any, Dict, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper impor...
null
null
null
xaviml/controllerx
train
64
5031ae5084db49cc09992436ab2c6e2ca253c61a
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
326
4
assert_*
test_on
from typing import Any, Dict, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper...
"light/turn_on")
added
0200a083dfffe3f3af2bec43c9df9a1bad534d2258842b57ecfbda789cfb5376
assert_*|test_on|from typing import Any, Dict, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from...
null
null
null
xaviml/controllerx
train
64
5031ae5084db49cc09992436ab2c6e2ca253c61a
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
336
4
assert_*
test_off
from typing import Any, Dict, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper...
"light/turn_off")
added
d6b1367d6288f9ca5a9277cf38b4f1bc2744e94fe28be658134e8571962d0731
assert_*|test_off|from typing import Any, Dict, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper fro...
null
null
null
xaviml/controllerx
train
64
5031ae5084db49cc09992436ab2c6e2ca253c61a
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
370
4
assert_*
test_toggle_full
from typing import Any, Dict, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper...
"light/toggle")
added
dbd0f4e337d7b1125f0bac976001d5030454c18bdd9e1171b9b0d85b8675f51d
assert_*|test_toggle_full|from typing import Any, Dict, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Ste...
null
null
null
xaviml/controllerx
train
64
5031ae5084db49cc09992436ab2c6e2ca253c61a
train
tests/unit_tests/cx_devices/aurora_test.py
test
xaviml/controllerx:tests/unit_tests/cx_devices/aurora_test.py
20
4
assert
test_zha_action_WXKG01LMLightController
import pytest from cx_core.integration import EventData from cx_devices.aurora import AUA1ZBR2GWLightController @pytest.mark.parametrize( "data, expected_action", [ ({"command": "on"}, "1_toggle"), ({"command": "on", "endpoint_id": 2}, "2_toggle"), ({"command": "off"}, "1_toggle"), ...
expected_action
added
91c95151bf0a7903f27ea648ef0127aba4c2e76dea2fa688c98fe59761e019fb
assert|test_zha_action_WXKG01LMLightController|import pytest from cx_core.integration import EventData from cx_devices.aurora import AUA1ZBR2GWLightController @pytest.mark.parametrize( "data, expected_action", [ ({"command": "on"}, "1_toggle"), ({"command": "on", "endpoint_id": 2}, "2_toggle"), ({"command": "off"}, "1_...
null
null
null
xaviml/controllerx
train
65
71da24da0ebe5313389cc0b3bae14771b3f98e70
train
tests/integ_tests/integ_test.py
train
xaviml/controllerx:tests/integ_tests/integ_test.py
93
4
assert
test_integ_configs
import asyncio import glob from pathlib import Path from typing import Any, Dict import pytest import yaml from appdaemon.plugins.hass.hassapi import Hass # type: ignore from cx_core.type_controller import TypeController from pytest_mock.plugin import MockerFixture from tests.test_utils import get_controller def g...
expected_calls_count
modified
dc73daa10e14b7bbeba2eec8d0431e1b20416a457aad0ed4078b1102318d04d6
assert|test_integ_configs|import asyncio import glob from pathlib import Path from typing import Any, Dict import pytest import yaml from appdaemon.plugins.hass.hassapi import Hass # type: ignore from cx_core.type_controller import TypeController from pytest_mock.plugin import MockerFixture from tests.test_utils import...
expected_calls_count
93
4
xaviml/controllerx
train
66
213012c6da1176f1f7b45df407efc41d04a87681
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
470
8
assert_*
test_call_action
from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from cx_core.action_type.base im...
handle)
modified
f1281000af46b6d2de55037df22339fcb2c26c1e0e388c69f732a401a75d8ec7
assert_*|test_call_action|from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from cx...
handle)
470
8
xaviml/controllerx
train
66
213012c6da1176f1f7b45df407efc41d04a87681
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
476
8
assert_*
test_call_action
from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from cx_core.action_type.base im...
{"action_key": action_key, "extra": None})
modified
4246daf72755411f440cc6f6eb987f0b5e11419814923b3f156480f510170e8b
assert_*|test_call_action|from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from cx...
{"action_key": action_key, "extra": None})
476
8
xaviml/controllerx
train
66
213012c6da1176f1f7b45df407efc41d04a87681
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
491
4
assert_*
test_call_service
from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from cx_core.action_type.base im...
service)
modified
6f7aaf3c50b16bd21d610c8916433651df92003ebee3d83ddeb78ee6db9820c4
assert_*|test_call_service|from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from c...
service)
491
4
xaviml/controllerx
train
66
213012c6da1176f1f7b45df407efc41d04a87681
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
509
4
assert
test_render_value
from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from cx_core.action_type.base im...
expected
modified
10db4c44514c73dcb1b4d7649cc3fc519edf02f34d365f063e4aafff6d8a1606
assert|test_render_value|from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from cx_...
expected
509
4
xaviml/controllerx
train
67
b86e45dff6ca56942b156edf2cf397bb7c4656f9
train
tests/test_utils.py
train
xaviml/controllerx:tests/test_utils.py
78
13
pytest.raises
import importlib import os import pkgutil from contextlib import contextmanager from typing import TYPE_CHECKING, Callable, Generator, Optional import pytest from _pytest._code.code import ExceptionInfo from mock import MagicMock from pytest_mock.plugin import MockerFixture if TYPE_CHECKING: from cx_core.controll...
exception)
modified
a0c83800efdcbd7a4179454374ff1554b9b9e09c0daae0c9c043db011a0bc8c6
pytest.raises||import importlib import os import pkgutil from contextlib import contextmanager from typing import TYPE_CHECKING, Callable, Generator, Optional import pytest from _pytest._code.code import ExceptionInfo from mock import MagicMock from pytest_mock.plugin import MockerFixture if TYPE_CHECKING: from cx_core...
exception)
75
13
xaviml/controllerx
train
67
b86e45dff6ca56942b156edf2cf397bb7c4656f9
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
242
4
assert
test_get_list
from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from cx_core.action_type.base im...
expected
modified
330ced131fb02902cb6ffffd57c00b020c1060ce5511b426aa1bc5bb88534a5d
assert|test_get_list|from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from cx_core...
expected
242
4
xaviml/controllerx
train
67
b86e45dff6ca56942b156edf2cf397bb7c4656f9
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
391
9
pytest.raises
test_get_default_actions_mapping_throwing_error
from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from cx_core.action_type.base im...
ValueError)
modified
ae3862570e20be3d87f27e5696a43027829bb90821daf2a64af73b38e2f577f8
pytest.raises|test_get_default_actions_mapping_throwing_error|from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.actio...
ValueError)
391
9
xaviml/controllerx
train
67
b86e45dff6ca56942b156edf2cf397bb7c4656f9
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
491
4
assert_*
test_call_service
from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from cx_core.action_type.base im...
service)
modified
33230d2cef2e1653d0b2ab5a0fa0c6fa2f7fa92346bff4dfa8d727c8dde25e8c
assert_*|test_call_service|from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from c...
service)
491
4
xaviml/controllerx
train
67
b86e45dff6ca56942b156edf2cf397bb7c4656f9
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
509
4
assert
test_render_value
from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from cx_core.action_type.base im...
expected
modified
058870344bde209b678055ff92972f50da913fc51c7e49f16af0bf01b56e4ec0
assert|test_render_value|from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from cx_...
expected
509
4
xaviml/controllerx
train
68
44a471e79bc5dc0f4138b9ea7800c272bdbf8736
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
476
8
assert_*
test_call_action
from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from cx_core.action_type.base im...
{"action_key": action_key, "extra": None})
modified
33a562808909ac67ed0ee31a794cc81c75399b403bbbc676b4d1330ce2651ed1
assert_*|test_call_action|from collections import defaultdict from typing import Any, Dict, List, Optional, Set, Union import appdaemon.plugins.hass.hassapi as hass import pytest from cx_const import ActionEvent from cx_core import integration as integration_module from cx_core.action_type import ActionsMapping from cx...
{"action_key": action_key, "extra": None})
476
8
xaviml/controllerx
train
68
44a471e79bc5dc0f4138b9ea7800c272bdbf8736
train
tests/unit_tests/cx_core/custom_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/custom_controller_test.py
167
4
assert
test_call_service_controller
from typing import Any, Dict, List, Tuple, Type import pytest from _pytest.monkeypatch import MonkeyPatch from appdaemon.plugins.hass.hassapi import Hass from cx_const import PredefinedActionsMapping from cx_core import ( CallServiceController, CoverController, LightController, MediaPlayerController, ...
len(expected_calls)
added
3ec60e15f7a58d78524391a164bf0778157a2dc7f074d21e4dec2bc9652fc0ce
assert|test_call_service_controller|from typing import Any, Dict, List, Tuple, Type import pytest from _pytest.monkeypatch import MonkeyPatch from appdaemon.plugins.hass.hassapi import Hass from cx_const import PredefinedActionsMapping from cx_core import ( CallServiceController, CoverController, LightController, Media...
null
null
null
xaviml/controllerx
train
68
44a471e79bc5dc0f4138b9ea7800c272bdbf8736
train
tests/unit_tests/cx_core/feature_support/media_player_support_test.py
test
xaviml/controllerx:tests/unit_tests/cx_core/feature_support/media_player_support_test.py
43
8
assert
test_is_supported
from typing import List import pytest from cx_core.feature_support import FeatureSupport from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.type_controller import TypeController @pytest.mark.parametrize( "number, expected_supported_features", [ (1, [MediaPlayerSupport.PA...
await feature_support.is_supported(expected_supported_feature)
modified
0b6378be00ee852f8089b60161c8e5fb2cd17b382312bf50413caa55a6207885
assert|test_is_supported|from typing import List import pytest from cx_core.feature_support import FeatureSupport from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.type_controller import TypeController @pytest.mark.parametrize( "number, expected_supported_features", [ (1, [MediaPlayerSupp...
await feature_support.is_supported(expected_supported_feature)
43
8
xaviml/controllerx
train
68
44a471e79bc5dc0f4138b9ea7800c272bdbf8736
train
tests/unit_tests/cx_core/integration/state_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/integration/state_test.py
43
4
assert_*
test_callback
from typing import Optional import pytest from appdaemon.plugins.hass.hassapi import Hass from cx_core.controller import Controller from cx_core.integration.state import StateIntegration from pytest_mock.plugin import MockerFixture @pytest.mark.parametrize("attribute", ["sensor", "entity_id", None]) @pytest.mark.asy...
"new_state")
added
01d6295c8229e786ba591cd209eba64c83550062e6416cd8cfc7aeb2f6adb8b9
assert_*|test_callback|from typing import Optional import pytest from appdaemon.plugins.hass.hassapi import Hass from cx_core.controller import Controller from cx_core.integration.state import StateIntegration from pytest_mock.plugin import MockerFixture @pytest.mark.parametrize("attribute", ["sensor", "entity_id", Non...
null
null
null
xaviml/controllerx
train
68
44a471e79bc5dc0f4138b9ea7800c272bdbf8736
train
tests/unit_tests/cx_core/integration/z2m_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/integration/z2m_test.py
113
8
assert
test_listen_changes
import json from typing import Any, Dict, Optional import pytest from appdaemon.plugins.hass.hassapi import Hass from appdaemon.plugins.mqtt.mqttapi import Mqtt from cx_core.controller import Controller from cx_core.integration.z2m import Z2MIntegration from pytest_mock import MockerFixture from tests.test_utils impo...
False
added
77600cab8b6d6a61f12ea677d025d7211776031967bb2972bdc38422f91441ba
assert|test_listen_changes|import json from typing import Any, Dict, Optional import pytest from appdaemon.plugins.hass.hassapi import Hass from appdaemon.plugins.mqtt.mqttapi import Mqtt from cx_core.controller import Controller from cx_core.integration.z2m import Z2MIntegration from pytest_mock import MockerFixture f...
null
null
null
xaviml/controllerx
train
68
44a471e79bc5dc0f4138b9ea7800c272bdbf8736
train
tests/unit_tests/cx_core/integration/zha_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/integration/zha_test.py
71
4
assert_*
test_listen_changes
from typing import Dict, Optional import pytest from appdaemon.plugins.hass.hassapi import Hass from cx_core.controller import Controller from cx_core.integration.zha import ZHAIntegration from pytest_mock.plugin import MockerFixture @pytest.mark.parametrize( "command, args, expected_called_with", [ ...
"zha_event")
added
7990f1cce25258881f2fd9231622dfad29802a4e91146e403a5d3d7920c17d3f
assert_*|test_listen_changes|from typing import Dict, Optional import pytest from appdaemon.plugins.hass.hassapi import Hass from cx_core.controller import Controller from cx_core.integration.zha import ZHAIntegration from pytest_mock.plugin import MockerFixture @pytest.mark.parametrize( "command, args, expected_called...
null
null
null
xaviml/controllerx
train
68
44a471e79bc5dc0f4138b9ea7800c272bdbf8736
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
488
4
assert_*
test_sync
from typing import Any, Dict, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper...
"light/turn_on")
added
73d14b939d2844d234d2661651a3720e629d6454c88b517a2de1d9f6aff1204c
assert_*|test_sync|from typing import Any, Dict, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper fr...
null
null
null
xaviml/controllerx
train
68
44a471e79bc5dc0f4138b9ea7800c272bdbf8736
train
tests/unit_tests/cx_core/type/switch_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/switch_controller_test.py
24
4
assert_*
test_turn_on
import pytest from cx_core import SwitchController from cx_core.type_controller import Entity from pytest_mock.plugin import MockerFixture from tests.test_utils import fake_fn ENTITY_NAME = "switch.test" @pytest.fixture @pytest.mark.asyncio async def sut(mocker: MockerFixture): c = SwitchController() # type: i...
"homeassistant/turn_on")
added
1f910e6ac9b0bbfddb810bbccfd261dbc5513e9e514f4592671f76b5b8602f8d
assert_*|test_turn_on|import pytest from cx_core import SwitchController from cx_core.type_controller import Entity from pytest_mock.plugin import MockerFixture from tests.test_utils import fake_fn ENTITY_NAME = "switch.test" @pytest.fixture @pytest.mark.asyncio async def sut(mocker: MockerFixture): c = SwitchControlle...
null
null
null
xaviml/controllerx
train
69
9d48e8fd21309ece332dcf47584b76cfe5a893c8
train
tests/unit_tests/cx_core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/media_player_controller_test.py
123
4
assert_*
test_volume_set
from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from pytest_mock.plugin im...
"media_player/volume_set")
added
c78c83b5d8a0ddd0fe7afb0fb62aa634883045f952ee4e52b44ef2811c50b86c
assert_*|test_volume_set|from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper fr...
null
null
null
xaviml/controllerx
train
69
9d48e8fd21309ece332dcf47584b76cfe5a893c8
train
tests/unit_tests/cx_core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/media_player_controller_test.py
137
4
assert_*
test_hold
from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from pytest_mock.plugin im...
direction)
added
a0cca8d2b54194734810fd8323ec2c0b7c8b2176308848b647e1c15a117807a6
assert_*|test_hold|from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from pyt...
null
null
null
xaviml/controllerx
train
69
9d48e8fd21309ece332dcf47584b76cfe5a893c8
train
tests/unit_tests/cx_core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/media_player_controller_test.py
173
8
assert_*
test_hold_loop
from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from pytest_mock.plugin im...
f"media_player/volume_{direction_input}")
added
4496a4aa2d66574af85dbbea14806cb4897f601916be9c742812f50d657546fe
assert_*|test_hold_loop|from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper fro...
null
null
null
xaviml/controllerx
train
69
9d48e8fd21309ece332dcf47584b76cfe5a893c8
train
tests/unit_tests/cx_core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/media_player_controller_test.py
219
8
assert_*
test_change_source_list
from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from pytest_mock.plugin im...
"media_player/select_source")
added
eba1ef26ce798f4d89e1bb67e98bbd09b969048456c38bf78866b77eef593003
assert_*|test_change_source_list|from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import St...
null
null
null
xaviml/controllerx
train
70
501cc8ac2022d8c3bac39afe76abc729d5e1afcc
train
tests/unit_tests/cx_core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/media_player_controller_test.py
119
4
assert_*
test_volume_set
from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from pytest_mock.plugin im...
"media_player/volume_set")
added
ad8f6d26dc748ee7c859e3e05cb284076c5310c3de814791f2a0e75a05f8d564
assert_*|test_volume_set|from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper fr...
null
null
null
xaviml/controllerx
train
70
501cc8ac2022d8c3bac39afe76abc729d5e1afcc
train
tests/unit_tests/cx_core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/media_player_controller_test.py
130
4
assert_*
test_volume_mute
from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from pytest_mock.plugin im...
"media_player/volume_mute")
added
1bc7f7cc5bdb56ec51da50d1f0e8eb60827d32458980a8a3cb84c43b0aa80f2d
assert_*|test_volume_mute|from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper f...
null
null
null
xaviml/controllerx
train
70
501cc8ac2022d8c3bac39afe76abc729d5e1afcc
train
tests/unit_tests/cx_core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/media_player_controller_test.py
168
4
assert_*
test_hold
from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from pytest_mock.plugin im...
direction)
added
6df4794a95127262b75387d67365d3912a716c97079a3fd1d3760bf0c663b69e
assert_*|test_hold|from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from pyt...
null
null
null
xaviml/controllerx
train
70
501cc8ac2022d8c3bac39afe76abc729d5e1afcc
train
tests/unit_tests/cx_core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/media_player_controller_test.py
198
8
assert_*
test_hold_loop
from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper from pytest_mock.plugin im...
"media_player/volume_set")
added
9845ac46987115e732a51912e16b2ddb2ba32b1993d36bee93a3693ff6d99c31
assert_*|test_hold_loop|from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import MediaPlayerController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.media_player import MediaPlayerSupport from cx_core.stepper import Stepper fro...
null
null
null
xaviml/controllerx
train
71
cc23733f1ec84c6ba40940c827f51a3312ab3dba
train
tests/unit_tests/cx_core/feature_support/light_support_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/feature_support/light_support_test.py
43
8
assert
test_is_supported
from typing import List import pytest from cx_core.feature_support import FeatureSupport from cx_core.feature_support.light import LightSupport from cx_core.type_controller import TypeController @pytest.mark.parametrize( "number, expected_supported_features", [ ( 40, [ ...
await feature_support.is_supported(expected_supported_feature)
added
e8cfef31bea9a564c87a635985d400737201c975376e80d94a98e0595f2df43f
assert|test_is_supported|from typing import List import pytest from cx_core.feature_support import FeatureSupport from cx_core.feature_support.light import LightSupport from cx_core.type_controller import TypeController @pytest.mark.parametrize( "number, expected_supported_features", [ ( 40, [ LightSupport.FLASH, Light...
null
null
null
xaviml/controllerx
train
71
cc23733f1ec84c6ba40940c827f51a3312ab3dba
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
133
8
assert
test_get_attribute
from typing import Any, Dict, Set, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.st...
expected_attribute
added
76c1caf623dc36ee30f4e28333c9ad82add9f946939709037d178f7937642fac
assert|test_get_attribute|from typing import Any, Dict, Set, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper impor...
null
null
null
xaviml/controllerx
train
71
cc23733f1ec84c6ba40940c827f51a3312ab3dba
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
307
4
assert_*
test_call_light_service
from typing import Any, Dict, Set, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.st...
"test_service")
added
3f2af2e556f6fafadafdbad911b31824bed6727aa8f24904618493de314f19db
assert_*|test_call_light_service|from typing import Any, Dict, Set, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.steppe...
null
null
null
xaviml/controllerx
train
71
cc23733f1ec84c6ba40940c827f51a3312ab3dba
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
361
4
assert_*
test_on
from typing import Any, Dict, Set, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.st...
"light/turn_on")
added
de43481213310d61831bb40da482951e3b7f06a8188d6e896359d47f5295ae3e
assert_*|test_on|from typing import Any, Dict, Set, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper...
null
null
null
xaviml/controllerx
train
71
cc23733f1ec84c6ba40940c827f51a3312ab3dba
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
403
4
assert_*
test_toggle_full
from typing import Any, Dict, Set, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.st...
"light/toggle")
added
0d5456448014949989fb88905a88949a85818cc106621d2a504f6f6b536f7a30
assert_*|test_toggle_full|from typing import Any, Dict, Set, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper impor...
null
null
null
xaviml/controllerx
train
72
fca1f7c22d587cdc959e8036dde0bc5d9596d997
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
528
4
assert_*
test_sync
from typing import Any, Dict, Set, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.st...
"light/turn_on")
modified
5e9c7f30fe1a4e7c209c1e2486362df6e39504f17c894fa08d22ddcc679f5edf
assert_*|test_sync|from typing import Any, Dict, Set, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepp...
"light/turn_on")
528
4
xaviml/controllerx
train
72
fca1f7c22d587cdc959e8036dde0bc5d9596d997
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
572
4
assert
test_click
from typing import Any, Dict, Set, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.st...
expected_calls
modified
4529871d54f7a589a75f409b06d353b6f53718becbb496ea18cf2a9b5ea90a34
assert|test_click|from typing import Any, Dict, Set, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Steppe...
expected_calls
572
4
xaviml/controllerx
train
72
fca1f7c22d587cdc959e8036dde0bc5d9596d997
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
634
8
assert_*
test_hold
from typing import Any, Dict, Set, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.st...
expected_direction)
modified
d4e0492ed73d41dc09570ec56902c280011662dacb08a4822bd2f5291433f80a
assert_*|test_hold|from typing import Any, Dict, Set, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepp...
expected_direction)
634
8
xaviml/controllerx
train
72
fca1f7c22d587cdc959e8036dde0bc5d9596d997
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
655
8
assert_*
test_hold_loop
from typing import Any, Dict, Set, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.st...
"hold")
modified
c3c2a8950cd97b4e7dd804d2ae348113e369ab6cc4d5bf9091b7d6d87d714b0c
assert_*|test_hold_loop|from typing import Any, Dict, Set, Tuple, Type, Union import pytest from _pytest.monkeypatch import MonkeyPatch from cx_core import LightController, ReleaseHoldController from cx_core.controller import Controller from cx_core.feature_support.light import LightSupport from cx_core.stepper import ...
"hold")
655
8
xaviml/controllerx
train
73
3f13f042b6a877af6fad950fc6a4001461fc86cf
train
tests/unit_tests/cx_core/stepper/bounce_stepper_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/stepper/bounce_stepper_test.py
35
4
assert
test_bounce_stepper
import pytest from cx_core.stepper import MinMax, Stepper from cx_core.stepper.bounce_stepper import BounceStepper from typing_extensions import Literal @pytest.mark.parametrize( "min_max, value, steps, direction, expected_value, expected_direction", [ (MinMax(0, 10), 5, 10, Stepper.DOWN, 4, Stepper.D...
expected_direction
added
75e5ae2cfed08e77ba577dbaef093ea5629f78a47fc8be64b06493e71c9b7d27
assert|test_bounce_stepper|import pytest from cx_core.stepper import MinMax, Stepper from cx_core.stepper.bounce_stepper import BounceStepper from typing_extensions import Literal @pytest.mark.parametrize( "min_max, value, steps, direction, expected_value, expected_direction", [ (MinMax(0, 10), 5, 10, Stepper.DOWN, 4, ...
null
null
null
xaviml/controllerx
train
73
3f13f042b6a877af6fad950fc6a4001461fc86cf
train
tests/unit_tests/cx_core/stepper/index_loop_stepper_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/stepper/index_loop_stepper_test.py
27
4
assert
test_index_loop_stepper
import pytest from cx_core.stepper import Stepper from cx_core.stepper.index_loop_stepper import IndexLoopStepper from typing_extensions import Literal @pytest.mark.parametrize( "size, value, direction, expected_value", [ (10, 5, Stepper.DOWN, 4), (10, 5, Stepper.UP, 6), (10, 1, Steppe...
expected_value
added
b9007c78c345ca98d085382f400c392577b53788379b3c18c07f444c9242d83f
assert|test_index_loop_stepper|import pytest from cx_core.stepper import Stepper from cx_core.stepper.index_loop_stepper import IndexLoopStepper from typing_extensions import Literal @pytest.mark.parametrize( "size, value, direction, expected_value", [ (10, 5, Stepper.DOWN, 4), (10, 5, Stepper.UP, 6), (10, 1, Stepper.D...
null
null
null