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
32
e9a1ba71f4358975b47170d74584fe0b86cd20a5
train
tests/core/stepper/minmax_stepper_test.py
train
xaviml/controllerx:tests/core/stepper/minmax_stepper_test.py
108
4
assert
test_minmax_stepper_step
import pytest from core.stepper.minmax_stepper import MinMaxStepper from core.stepper import Stepper @pytest.mark.parametrize( "minmax, value, direction, previous_direction, expected_direction, expected_new_previous_direction", [ ((0, 10), 10, Stepper.DOWN, None, Stepper.DOWN, None), ((0, 10)...
expected_value
added
18bafba541874e6303c0423914ad017797c640172d0a5907357ba68e73ebacd9
assert|test_minmax_stepper_step|import pytest from core.stepper.minmax_stepper import MinMaxStepper from core.stepper import Stepper @pytest.mark.parametrize( "minmax, value, direction, previous_direction, expected_direction, expected_new_previous_direction", [ ((0, 10), 10, Stepper.DOWN, None, Stepper.DOWN, None), ((0...
null
null
null
xaviml/controllerx
train
32
e9a1ba71f4358975b47170d74584fe0b86cd20a5
train
tests/core/stepper/minmax_stepper_test.py
train
xaviml/controllerx:tests/core/stepper/minmax_stepper_test.py
109
4
assert
test_minmax_stepper_step
import pytest from core.stepper.minmax_stepper import MinMaxStepper from core.stepper import Stepper @pytest.mark.parametrize( "minmax, value, direction, previous_direction, expected_direction, expected_new_previous_direction", [ ((0, 10), 10, Stepper.DOWN, None, Stepper.DOWN, None), ((0, 10)...
expected_exceeded
added
d1df2205202116d225daa2d2227f06863d12523c94f8c563872287d38467674f
assert|test_minmax_stepper_step|import pytest from core.stepper.minmax_stepper import MinMaxStepper from core.stepper import Stepper @pytest.mark.parametrize( "minmax, value, direction, previous_direction, expected_direction, expected_new_previous_direction", [ ((0, 10), 10, Stepper.DOWN, None, Stepper.DOWN, None), ((0...
null
null
null
xaviml/controllerx
train
33
013f3d52af94fd147c2041734ae809e8a6754706
train
tests/core/controller_test.py
test
xaviml/controllerx:tests/core/controller_test.py
367
4
assert_*
test_call_service
from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from core import integration as integration_module from core.controller import action from tests.test_utils import ( IntegrationMock, fake_async_function, fake_controller, hass_mock, ) @pytest.fixture def...
service)
modified
0dcbe38441038b05fb4bf5916386c5241b89c09a2ff6467e049a88fee93a65cc
assert_*|test_call_service|from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from core import integration as integration_module from core.controller import action from tests.test_utils import ( IntegrationMock, fake_async_function, fake_controller, hass_mock, ) @pytest.fixt...
service)
367
4
xaviml/controllerx
train
34
0e430c9d9c3336bbb759c9b72a177fba1b562b7a
train
tests/core/type/light_controller_test.py
train
xaviml/controllerx:tests/core/type/light_controller_test.py
238
4
assert
test_change_light_state
import pytest from core import LightController, ReleaseHoldController from core.feature_support import FeatureSupport from core.feature_support.light import LightSupport from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.minmax_stepper import MinMaxStepper from...
expected_value_attribute
added
adccd4b30b3d88b61e937a6acff18587a4bbbfb7fe80e770b0269a1f43a2a877
assert|test_change_light_state|import pytest from core import LightController, ReleaseHoldController from core.feature_support import FeatureSupport from core.feature_support.light import LightSupport from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.minmax_ste...
null
null
null
xaviml/controllerx
train
34
0e430c9d9c3336bbb759c9b72a177fba1b562b7a
train
tests/core/type/light_controller_test.py
train
xaviml/controllerx:tests/core/type/light_controller_test.py
374
4
assert
test_set_value
import pytest from core import LightController, ReleaseHoldController from core.feature_support import FeatureSupport from core.feature_support.light import LightSupport from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.minmax_stepper import MinMaxStepper from...
expected_calls
added
eec8f11a91a9805bee0bb0c212e93794f576475518037996de5079f069251519
assert|test_set_value|import pytest from core import LightController, ReleaseHoldController from core.feature_support import FeatureSupport from core.feature_support.light import LightSupport from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.minmax_stepper impo...
null
null
null
xaviml/controllerx
train
34
0e430c9d9c3336bbb759c9b72a177fba1b562b7a
train
tests/core/type/light_controller_test.py
train
xaviml/controllerx:tests/core/type/light_controller_test.py
440
4
assert_*
test_sync
import pytest from core import LightController, ReleaseHoldController from core.feature_support import FeatureSupport from core.feature_support.light import LightSupport from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.minmax_stepper import MinMaxStepper from...
"light/turn_on")
added
7b2a29a3ab5a249211d7e57cc00efeea088665a426d2fb8673ae676c248ea659
assert_*|test_sync|import pytest from core import LightController, ReleaseHoldController from core.feature_support import FeatureSupport from core.feature_support.light import LightSupport from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.minmax_stepper import ...
null
null
null
xaviml/controllerx
train
34
0e430c9d9c3336bbb759c9b72a177fba1b562b7a
train
tests/core/type/light_controller_test.py
train
xaviml/controllerx:tests/core/type/light_controller_test.py
556
8
assert_*
test_hold
import pytest from core import LightController, ReleaseHoldController from core.feature_support import FeatureSupport from core.feature_support.light import LightSupport from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.minmax_stepper import MinMaxStepper from...
expected_direction)
added
7ab29029576cf6a1d98e3be18bdac5d7efa7c517063d90446259d6d1f4b6f1cf
assert_*|test_hold|import pytest from core import LightController, ReleaseHoldController from core.feature_support import FeatureSupport from core.feature_support.light import LightSupport from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.minmax_stepper import ...
null
null
null
xaviml/controllerx
train
35
80f0b2207cfc3c0aebf471d05072758fc028f17b
train
tests/core/controller_test.py
test
xaviml/controllerx:tests/core/controller_test.py
183
13
pytest.raises
test_get_option
from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from core import integration as integration_module from core.controller import action from tests.test_utils import ( IntegrationMock, fake_async_function, fake_controller, hass_mock, ) @pytest.fixture def...
ValueError)
modified
147d034b6b4d8d521e00a72a29729586106bba5fb8eb34f49ae198d0837a204d
pytest.raises|test_get_option|from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from core import integration as integration_module from core.controller import action from tests.test_utils import ( IntegrationMock, fake_async_function, fake_controller, hass_mock, ) @pytest.f...
ValueError)
180
13
xaviml/controllerx
train
35
80f0b2207cfc3c0aebf471d05072758fc028f17b
train
tests/core/controller_test.py
test
xaviml/controllerx:tests/core/controller_test.py
222
8
assert_*
test_get_integration
from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from core import integration as integration_module from core.controller import action from tests.test_utils import ( IntegrationMock, fake_async_function, fake_controller, hass_mock, ) @pytest.fixture def...
args_expected)
modified
a74c6b5713aefd77c40086579ef4a36ee739e9b801c6d1ad510b971b56b412a8
assert_*|test_get_integration|from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from core import integration as integration_module from core.controller import action from tests.test_utils import ( IntegrationMock, fake_async_function, fake_controller, hass_mock, ) @pytest.f...
args_expected)
219
8
xaviml/controllerx
train
35
80f0b2207cfc3c0aebf471d05072758fc028f17b
train
tests/core/controller_test.py
test
xaviml/controllerx:tests/core/controller_test.py
283
4
assert
test_handle_action
from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from core import integration as integration_module from core.controller import action from tests.test_utils import ( IntegrationMock, fake_async_function, fake_controller, hass_mock, ) @pytest.fixture def...
expected_calls
modified
4b5deaabd49308ceaa3afc8a898d2c121bce78b72a5862f7d4a1e1a6892f0b57
assert|test_handle_action|from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from core import integration as integration_module from core.controller import action from tests.test_utils import ( IntegrationMock, fake_async_function, fake_controller, hass_mock, ) @pytest.fixtu...
expected_calls
280
4
xaviml/controllerx
train
35
80f0b2207cfc3c0aebf471d05072758fc028f17b
train
tests/core/controller_test.py
test
xaviml/controllerx:tests/core/controller_test.py
370
4
assert_*
test_call_service
from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from core import integration as integration_module from core.controller import action from tests.test_utils import ( IntegrationMock, fake_async_function, fake_controller, hass_mock, ) @pytest.fixture def...
service)
modified
e2cd4cf7c4627d755fc76305d7b6cfca4abde07af031c1206180f004cbc1cdc2
assert_*|test_call_service|from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from core import integration as integration_module from core.controller import action from tests.test_utils import ( IntegrationMock, fake_async_function, fake_controller, hass_mock, ) @pytest.fixt...
service)
367
4
xaviml/controllerx
train
36
bddeec2a89478f10149c02cbd216a26eeb47f59a
train
tests/core/integration/integration_test.py
train
xaviml/controllerx:tests/core/integration/integration_test.py
8
4
assert
test_get_integrations
from core import integration as integration_module from tests.test_utils import hass_mock, fake_controller def test_get_integrations(fake_controller): integrations = integration_module.get_integrations(fake_controller, {}) inteagration_names = {i.name for i in integrations} assert inteagration_names ==
{"z2m", "zha", "deconz", "state", "mqtt"}
added
22674ea9451f8a15bc63fc851065ce791d9d842ff3159f990ff8ade968b9abce
assert|test_get_integrations|from core import integration as integration_module from tests.test_utils import hass_mock, fake_controller def test_get_integrations(fake_controller): integrations = integration_module.get_integrations(fake_controller, {}) inteagration_names = {i.name for i in integrations} assert inteagrat...
null
null
null
xaviml/controllerx
train
37
2e5b9cf760374fb338037a2b7e2919b35377c390
train
tests/core/feature_support/media_player_support_test.py
val
xaviml/controllerx:tests/core/feature_support/media_player_support_test.py
34
4
assert
test_init
from core.feature_support.media_player import MediaPlayerSupport import pytest @pytest.mark.parametrize( "number, expected_supported_features", [ ("1", {MediaPlayerSupport.PAUSE,},), ("4", {MediaPlayerSupport.VOLUME_SET,},), ( "57", { MediaPlayer...
expected_supported_features
added
85770b3c316c17837c9f05e641fd8288221eaa96867f014fa92b531a4224526f
assert|test_init|from core.feature_support.media_player import MediaPlayerSupport import pytest @pytest.mark.parametrize( "number, expected_supported_features", [ ("1", {MediaPlayerSupport.PAUSE,},), ("4", {MediaPlayerSupport.VOLUME_SET,},), ( "57", { MediaPlayerSupport.NEXT_TRACK, MediaPlayerSupport.PREVIOUS_TRACK, Me...
null
null
null
xaviml/controllerx
train
37
2e5b9cf760374fb338037a2b7e2919b35377c390
train
tests/core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/core/type/media_player_controller_test.py
67
4
assert_*
test_volume_up
from core.feature_support.media_player import MediaPlayerSupport import pytest from core import MediaPlayerController, ReleaseHoldController from core.stepper import Stepper from tests.test_utils import fake_async_function, hass_mock @pytest.fixture @pytest.mark.asyncio async def sut(monkeypatch, hass_mock, mocker):...
"media_player/volume_set")
modified
b9e110535b3217851818ca0f95c9b7afecbdcbebebf908d2ba97f94d011bc86d
assert_*|test_volume_up|from core.feature_support.media_player import MediaPlayerSupport import pytest from core import MediaPlayerController, ReleaseHoldController from core.stepper import Stepper from tests.test_utils import fake_async_function, hass_mock @pytest.fixture @pytest.mark.asyncio async def sut(monkeypatch...
"media_player/volume_set")
64
4
xaviml/controllerx
train
37
2e5b9cf760374fb338037a2b7e2919b35377c390
train
tests/core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/core/type/media_player_controller_test.py
82
4
assert_*
test_volume_down
from core.feature_support.media_player import MediaPlayerSupport import pytest from core import MediaPlayerController, ReleaseHoldController from core.stepper import Stepper from tests.test_utils import fake_async_function, hass_mock @pytest.fixture @pytest.mark.asyncio async def sut(monkeypatch, hass_mock, mocker):...
"media_player/volume_set")
added
3b9f3bbc7be66058ddd3e9e39f23864bd6848ce2a151cbfa3160241adfd99550
assert_*|test_volume_down|from core.feature_support.media_player import MediaPlayerSupport import pytest from core import MediaPlayerController, ReleaseHoldController from core.stepper import Stepper from tests.test_utils import fake_async_function, hass_mock @pytest.fixture @pytest.mark.asyncio async def sut(monkeypat...
null
null
null
xaviml/controllerx
train
37
2e5b9cf760374fb338037a2b7e2919b35377c390
train
tests/core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/core/type/media_player_controller_test.py
122
8
assert_*
test_hold_loop
from core.feature_support.media_player import MediaPlayerSupport import pytest from core import MediaPlayerController, ReleaseHoldController from core.stepper import Stepper from tests.test_utils import fake_async_function, hass_mock @pytest.fixture @pytest.mark.asyncio async def sut(monkeypatch, hass_mock, mocker):...
"media_player/volume_set")
added
3566632ccedaa1e905f7abf9b31c057b18caf4e7a778790be2615fe7c2ba510f
assert_*|test_hold_loop|from core.feature_support.media_player import MediaPlayerSupport import pytest from core import MediaPlayerController, ReleaseHoldController from core.stepper import Stepper from tests.test_utils import fake_async_function, hass_mock @pytest.fixture @pytest.mark.asyncio async def sut(monkeypatch...
null
null
null
xaviml/controllerx
train
37
2e5b9cf760374fb338037a2b7e2919b35377c390
train
tests/core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/core/type/media_player_controller_test.py
174
8
assert_*
test_change_source_list
from core.feature_support.media_player import MediaPlayerSupport import pytest from core import MediaPlayerController, ReleaseHoldController from core.stepper import Stepper from tests.test_utils import fake_async_function, hass_mock @pytest.fixture @pytest.mark.asyncio async def sut(monkeypatch, hass_mock, mocker):...
"media_player/select_source")
added
7d35b4b52a0bac7bb03b745ef6030433d58e05a277da5b2c18bc09ef61328d75
assert_*|test_change_source_list|from core.feature_support.media_player import MediaPlayerSupport import pytest from core import MediaPlayerController, ReleaseHoldController from core.stepper import Stepper from tests.test_utils import fake_async_function, hass_mock @pytest.fixture @pytest.mark.asyncio async def sut(mo...
null
null
null
xaviml/controllerx
train
38
757366e87267c13c972ff5d2231a98619511fa70
train
tests/core/feature_support/cover_support_test.py
train
xaviml/controllerx:tests/core/feature_support/cover_support_test.py
36
4
assert
test_init
from core.feature_support.cover import CoverSupport import pytest from core.feature_support import FeatureSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {CoverSupport.OPEN,},), ( 15, { CoverSupport.OPEN, Co...
expected_supported_features
added
a2411629f0958aefb45be1456bdd0c7bf97bd7a81fb5fca3344fe81b68eaa511
assert|test_init|from core.feature_support.cover import CoverSupport import pytest from core.feature_support import FeatureSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {CoverSupport.OPEN,},), ( 15, { CoverSupport.OPEN, CoverSupport.CLOSE, CoverSupport.SET_COVER_POSITION, CoverSupport.S...
null
null
null
xaviml/controllerx
train
38
757366e87267c13c972ff5d2231a98619511fa70
train
tests/core/feature_support/feature_support_test.py
train
xaviml/controllerx:tests/core/feature_support/feature_support_test.py
49
4
assert
test_is_supported
from core.feature_support import FeatureSupport import pytest @pytest.mark.parametrize( "number, features, expected_features", [ (15, [1, 2, 4, 8, 16, 32, 64], {1, 2, 4, 8}), (16, [1, 2, 4, 8, 16, 32, 64], {16}), (31, [1, 2, 4, 8, 16, 64], {1, 2, 4, 8, 16}), (70, [1, 2, 4, 8, 1...
is_supported
added
94b407d9925cee60ebfb59de2fd77c84e3383f1ed18b91c7c2389def3c1317ce
assert|test_is_supported|from core.feature_support import FeatureSupport import pytest @pytest.mark.parametrize( "number, features, expected_features", [ (15, [1, 2, 4, 8, 16, 32, 64], {1, 2, 4, 8}), (16, [1, 2, 4, 8, 16, 32, 64], {16}), (31, [1, 2, 4, 8, 16, 64], {1, 2, 4, 8, 16}), (70, [1, 2, 4, 8, 16, 64], {2, 4, 64...
null
null
null
xaviml/controllerx
train
38
757366e87267c13c972ff5d2231a98619511fa70
train
tests/core/feature_support/light_support_test.py
train
xaviml/controllerx:tests/core/feature_support/light_support_test.py
36
4
assert
test_init
from core.feature_support.light import LightSupport import pytest from core.feature_support import FeatureSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {LightSupport.BRIGHTNESS,},), ( 57, { LightSupport.BRIGHTNESS, ...
expected_supported_features
added
c08ee7d92ef9f3202e0629935022aac83549fb0a203706867c46197d0a9336fb
assert|test_init|from core.feature_support.light import LightSupport import pytest from core.feature_support import FeatureSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {LightSupport.BRIGHTNESS,},), ( 57, { LightSupport.BRIGHTNESS, LightSupport.FLASH, LightSupport.COLOR, LightSupport.TR...
null
null
null
xaviml/controllerx
train
38
757366e87267c13c972ff5d2231a98619511fa70
train
tests/core/feature_support/media_player_support_test.py
val
xaviml/controllerx:tests/core/feature_support/media_player_support_test.py
37
4
assert
test_init
from core.feature_support import FeatureSupport from core.feature_support.media_player import MediaPlayerSupport import pytest @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {MediaPlayerSupport.PAUSE,},), (4, {MediaPlayerSupport.VOLUME_SET,},), ( 57,...
expected_supported_features
added
e8be0c5d4c030947f4d9e21a7575c6981313526ddee1a438caf8ac35e16b48e2
assert|test_init|from core.feature_support import FeatureSupport from core.feature_support.media_player import MediaPlayerSupport import pytest @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {MediaPlayerSupport.PAUSE,},), (4, {MediaPlayerSupport.VOLUME_SET,},), ( 57, { MediaPlayerSupport.NEXT_TR...
null
null
null
xaviml/controllerx
train
38
757366e87267c13c972ff5d2231a98619511fa70
train
tests/core/type/cover_controller_test.py
val
xaviml/controllerx:tests/core/type/cover_controller_test.py
108
8
assert_*
test_close
from core.feature_support import FeatureSupport from core.feature_support.cover import CoverSupport import pytest from core.controller import TypeController from tests.test_utils import fake_async_function, hass_mock from core import CoverController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocke...
expected_service)
modified
e1eb6069aa30422f582a747dc6e2bbffd6824718f308e1b30fc8609ddc4104a6
assert_*|test_close|from core.feature_support import FeatureSupport from core.feature_support.cover import CoverSupport import pytest from core.controller import TypeController from tests.test_utils import fake_async_function, hass_mock from core import CoverController @pytest.fixture @pytest.mark.asyncio async def sut...
expected_service)
106
8
xaviml/controllerx
train
38
757366e87267c13c972ff5d2231a98619511fa70
train
tests/core/type/light_controller_test.py
train
xaviml/controllerx:tests/core/type/light_controller_test.py
164
13
pytest.raises
test_get_value_attribute
import pytest from core import LightController, ReleaseHoldController from core.feature_support import FeatureSupport from core.feature_support.light import LightSupport from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.minmax_stepper import MinMaxStepper from...
ValueError)
modified
f4de96f96ce962801e0d708709651697e8ce6de4b76fab963b338e4fdd788b38
pytest.raises|test_get_value_attribute|import pytest from core import LightController, ReleaseHoldController from core.feature_support import FeatureSupport from core.feature_support.light import LightSupport from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.mi...
ValueError)
162
13
xaviml/controllerx
train
38
757366e87267c13c972ff5d2231a98619511fa70
train
tests/core/type/light_controller_test.py
train
xaviml/controllerx:tests/core/type/light_controller_test.py
336
4
assert_*
test_off
import pytest from core import LightController, ReleaseHoldController from core.feature_support import FeatureSupport from core.feature_support.light import LightSupport from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.minmax_stepper import MinMaxStepper from...
"light/turn_off")
added
13a1336deeec2ea105cc73f02f76a4a38f6d8100c7b497783fad6ee93f289c6d
assert_*|test_off|import pytest from core import LightController, ReleaseHoldController from core.feature_support import FeatureSupport from core.feature_support.light import LightSupport from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.minmax_stepper import M...
null
null
null
xaviml/controllerx
train
38
757366e87267c13c972ff5d2231a98619511fa70
train
tests/core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/core/type/media_player_controller_test.py
82
4
assert_*
test_volume_down
from core.feature_support.media_player import MediaPlayerSupport import pytest from core import MediaPlayerController, ReleaseHoldController from core.stepper import Stepper from tests.test_utils import fake_async_function, hass_mock @pytest.fixture @pytest.mark.asyncio async def sut(monkeypatch, hass_mock, mocker):...
"media_player/volume_set")
modified
444dc718be399622392b1b3c1409f8a7f5c19feb584d255ac22c43903cf8f12a
assert_*|test_volume_down|from core.feature_support.media_player import MediaPlayerSupport import pytest from core import MediaPlayerController, ReleaseHoldController from core.stepper import Stepper from tests.test_utils import fake_async_function, hass_mock @pytest.fixture @pytest.mark.asyncio async def sut(monkeypat...
"media_player/volume_set")
82
4
xaviml/controllerx
train
39
d83bca4e81db1633941793c1872e16f138928344
train
tests/core/controller_test.py
test
xaviml/controllerx:tests/core/controller_test.py
183
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_async_function, fake_controller, hass_mock, ) @pytest.fixtu...
ValueError)
modified
64c6a573f8c94d312260be5523943b4ac4a8d93c517f05ed722184f1f1b5a927
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_async_function, fake_controller, hass_mock, ) @py...
ValueError)
183
13
xaviml/controllerx
train
39
d83bca4e81db1633941793c1872e16f138928344
train
tests/core/feature_support/cover_support_test.py
train
xaviml/controllerx:tests/core/feature_support/cover_support_test.py
36
4
assert
test_init
from cx_core.feature_support.cover import CoverSupport import pytest from cx_core.feature_support import FeatureSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {CoverSupport.OPEN,},), ( 15, { CoverSupport.OPEN, ...
expected_supported_features
modified
cb448735fcc18257ab964dca020ea9dbf326d6e9d1dc4dca462524b43d29662b
assert|test_init|from cx_core.feature_support.cover import CoverSupport import pytest from cx_core.feature_support import FeatureSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {CoverSupport.OPEN,},), ( 15, { CoverSupport.OPEN, CoverSupport.CLOSE, CoverSupport.SET_COVER_POSITION, CoverSup...
expected_supported_features
36
4
xaviml/controllerx
train
39
d83bca4e81db1633941793c1872e16f138928344
train
tests/core/feature_support/light_support_test.py
train
xaviml/controllerx:tests/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
95220a08e14cb5e42c5346d7b3b0b0032e432e22f18db734ca80c4e8f6433602
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, LightSupp...
expected_supported_features
36
4
xaviml/controllerx
train
39
d83bca4e81db1633941793c1872e16f138928344
train
tests/core/feature_support/media_player_support_test.py
val
xaviml/controllerx:tests/core/feature_support/media_player_support_test.py
38
4
assert
test_init
import pytest from cx_core.feature_support import FeatureSupport 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
modified
17dcc41017c9168786d68379c7525e86bb0a29295b60be91dcd1640cfa1c04b2
assert|test_init|import pytest from cx_core.feature_support import FeatureSupport from cx_core.feature_support.media_player import MediaPlayerSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {MediaPlayerSupport.PAUSE,},), (4, {MediaPlayerSupport.VOLUME_SET,},), ( 57, { MediaPlayerSupport.N...
expected_supported_features
37
4
xaviml/controllerx
train
39
d83bca4e81db1633941793c1872e16f138928344
train
tests/core/release_hold_controller_test.py
train
xaviml/controllerx:tests/core/release_hold_controller_test.py
39
4
assert
test_release
import pytest from cx_core.controller import Controller, ReleaseHoldController from tests.test_utils import fake_async_function, hass_mock class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass @pytest.fixture def sut(hass_mock): c = FakeReleaseHoldController() c.args...
False
modified
d8a33603e38386a1277a6f5423f62cac60cd4028a05c69e63df5a73f19dc136f
assert|test_release|import pytest from cx_core.controller import Controller, ReleaseHoldController from tests.test_utils import fake_async_function, hass_mock class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass @pytest.fixture def sut(hass_mock): c = FakeReleaseHoldController() c.args = {}...
False
41
4
xaviml/controllerx
train
39
d83bca4e81db1633941793c1872e16f138928344
train
tests/core/stepper/circular_stepper_test.py
train
xaviml/controllerx:tests/core/stepper/circular_stepper_test.py
29
4
assert
test_minmax_stepper
import pytest from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper import Stepper @pytest.mark.parametrize( "minmax, value, steps, direction, expected_value", [ ((0, 10), 5, 10, Stepper.DOWN, 4), ((0, 10), 5, 10, Stepper.UP, 6), ((0, 10), 1, 10, Stepper.DO...
expected_value
modified
8605bb107047932c93e1c47a0b32639554dbebb074ab9194a8092553b5056504
assert|test_minmax_stepper|import pytest from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper import Stepper @pytest.mark.parametrize( "minmax, value, steps, direction, expected_value", [ ((0, 10), 5, 10, Stepper.DOWN, 4), ((0, 10), 5, 10, Stepper.UP, 6), ((0, 10), 1, 10, Stepper.DOWN, 0), ...
expected_value
29
4
xaviml/controllerx
train
39
d83bca4e81db1633941793c1872e16f138928344
train
tests/core/stepper/minmax_stepper_test.py
train
xaviml/controllerx:tests/core/stepper/minmax_stepper_test.py
81
4
assert
test_minmax_stepper_get_direction
import pytest from cx_core.stepper.minmax_stepper import MinMaxStepper from cx_core.stepper import Stepper @pytest.mark.parametrize( "minmax, value, direction, previous_direction, expected_direction, expected_new_previous_direction", [ ((0, 10), 10, Stepper.DOWN, None, Stepper.DOWN, None), ((...
expected_new_previous_direction
modified
aea978341c55ab52e7edab46ecace28f5681b5b136fa596c3751221a98680f27
assert|test_minmax_stepper_get_direction|import pytest from cx_core.stepper.minmax_stepper import MinMaxStepper from cx_core.stepper import Stepper @pytest.mark.parametrize( "minmax, value, direction, previous_direction, expected_direction, expected_new_previous_direction", [ ((0, 10), 10, Stepper.DOWN, None, Stepper.D...
expected_new_previous_direction
81
4
xaviml/controllerx
train
39
d83bca4e81db1633941793c1872e16f138928344
train
tests/core/type/cover_controller_test.py
val
xaviml/controllerx:tests/core/type/cover_controller_test.py
119
4
assert_*
test_stop
from cx_core.feature_support import FeatureSupport from cx_core.feature_support.cover import CoverSupport import pytest from cx_core.controller import TypeController from tests.test_utils import fake_async_function, hass_mock from cx_core import CoverController @pytest.fixture @pytest.mark.asyncio async def sut(hass...
"cover/stop_cover")
modified
4d0b3f012a97fd8389e7947091683656e7f22d3ff2f851a6fe20343b50fc278c
assert_*|test_stop|from cx_core.feature_support import FeatureSupport from cx_core.feature_support.cover import CoverSupport import pytest from cx_core.controller import TypeController from tests.test_utils import fake_async_function, hass_mock from cx_core import CoverController @pytest.fixture @pytest.mark.asyncio as...
"cover/stop_cover")
119
4
xaviml/controllerx
train
40
0d071ff3ca8218b96fdbbca65469349fd32be1c3
train
tests/core/controller_test.py
test
xaviml/controllerx:tests/core/controller_test.py
211
13
pytest.raises
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_async_function @pytest.fixture def sut(fake_controller): return fake_cont...
ValueError)
added
b663cdcf344a8fe10877f649ee2b22653f0f0cfd2e5145bbba308dc94c529930
pytest.raises|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_async_function @pytest.fixture def sut(fake_co...
null
null
null
xaviml/controllerx
train
40
0d071ff3ca8218b96fdbbca65469349fd32be1c3
train
tests/core/custom_controller_test.py
train
xaviml/controllerx:tests/core/custom_controller_test.py
156
8
assert_*
test_call_service_controller
import pytest from cx_core import ( CallServiceController, Controller, CustomLightController, CustomMediaPlayerController, ) from cx_core.custom_controller import CustomCoverController, CustomSwitchController from tests.test_utils import fake_async_function @pytest.mark.parametrize( "custom_cls, ...
expected_service)
modified
f50014f8855f6bc61ffa64abdc490c131770159c3f48bc4fa4e2915616819a27
assert_*|test_call_service_controller|import pytest from cx_core import ( CallServiceController, Controller, CustomLightController, CustomMediaPlayerController, ) from cx_core.custom_controller import CustomCoverController, CustomSwitchController from tests.test_utils import fake_async_function @pytest.mark.parametrize...
expected_service)
156
8
xaviml/controllerx
train
40
0d071ff3ca8218b96fdbbca65469349fd32be1c3
train
tests/core/feature_support/cover_support_test.py
train
xaviml/controllerx:tests/core/feature_support/cover_support_test.py
36
4
assert
test_init
from cx_core.feature_support.cover import CoverSupport import pytest from cx_core.feature_support import FeatureSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {CoverSupport.OPEN},), ( 15, { CoverSupport.OPEN, ...
expected_supported_features
modified
87ed2002416830d5e28b17a0161dee23d4fe2569fffe3c8ab3e9d2ce12dc4825
assert|test_init|from cx_core.feature_support.cover import CoverSupport import pytest from cx_core.feature_support import FeatureSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {CoverSupport.OPEN},), ( 15, { CoverSupport.OPEN, CoverSupport.CLOSE, CoverSupport.SET_COVER_POSITION, CoverSupp...
expected_supported_features
36
4
xaviml/controllerx
train
40
0d071ff3ca8218b96fdbbca65469349fd32be1c3
train
tests/core/feature_support/light_support_test.py
train
xaviml/controllerx:tests/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
32b85c0e54bcdcdbd1c299f87aba033303cf0242a4d1e89297dfe94d6e9cbdf6
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
40
0d071ff3ca8218b96fdbbca65469349fd32be1c3
train
tests/core/feature_support/media_player_support_test.py
val
xaviml/controllerx:tests/core/feature_support/media_player_support_test.py
38
4
assert
test_init
import pytest from cx_core.feature_support import FeatureSupport 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
modified
0ccd8257fc421fdc60197954c80ca5bc0f0fdb8c9728a45398e0e597704ecf2e
assert|test_init|import pytest from cx_core.feature_support import FeatureSupport from cx_core.feature_support.media_player import MediaPlayerSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {MediaPlayerSupport.PAUSE}), (4, {MediaPlayerSupport.VOLUME_SET}), ( 57, { MediaPlayerSupport.NEXT_...
expected_supported_features
38
4
xaviml/controllerx
train
40
0d071ff3ca8218b96fdbbca65469349fd32be1c3
train
tests/core/integration/integration_test.py
train
xaviml/controllerx:tests/core/integration/integration_test.py
7
4
assert
test_get_integrations
from cx_core import integration as integration_module def test_get_integrations(fake_controller): integrations = integration_module.get_integrations(fake_controller, {}) inteagration_names = {i.name for i in integrations} assert inteagration_names ==
{"z2m", "zha", "deconz", "state", "mqtt"}
added
373985236d8ab119b4b581d1482358976e83c537a9e7f319e791ba8bba04de37
assert|test_get_integrations|from cx_core import integration as integration_module def test_get_integrations(fake_controller): integrations = integration_module.get_integrations(fake_controller, {}) inteagration_names = {i.name for i in integrations} assert inteagration_names ==
null
null
null
xaviml/controllerx
train
40
0d071ff3ca8218b96fdbbca65469349fd32be1c3
train
tests/core/release_hold_controller_test.py
train
xaviml/controllerx:tests/core/release_hold_controller_test.py
39
4
assert
test_release
import pytest from cx_core.controller import Controller, ReleaseHoldController from tests.test_utils import fake_async_function class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass @pytest.fixture def sut(hass_mock): c = FakeReleaseHoldController() c.args = {} c...
not sut.on_hold
modified
e91e35fc38af313893e11748f1021c9fed744e2e2e4cdab755e80f6cb3b749a7
assert|test_release|import pytest from cx_core.controller import Controller, ReleaseHoldController from tests.test_utils import fake_async_function class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass @pytest.fixture def sut(hass_mock): c = FakeReleaseHoldController() c.args = {} c.delay = ...
False
39
4
xaviml/controllerx
train
40
0d071ff3ca8218b96fdbbca65469349fd32be1c3
train
tests/core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/core/type/media_player_controller_test.py
172
4
assert
test_change_source_list
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_async_function @pytest.fixture @pytest.mark.asyncio async def sut(monkeypatch, hass_mock, mocker): ...
expected_calls
modified
034cc5cf07e9ca202bbd269f4a3e49996df49a83378af0f447e435c7f4965b79
assert|test_change_source_list|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_async_function @pytest.fixture @pytest.mark.asyncio async def sut(monkey...
expected_calls
172
4
xaviml/controllerx
train
41
cb8aac209bf599b60f7458bc79963e4b781f62aa
train
tests/core/color_helper_test.py
test
xaviml/controllerx:tests/core/color_helper_test.py
19
13
pytest.raises
test_get_color_wheel
import pytest from cx_core.color_helper import get_color_wheel @pytest.mark.parametrize( "colors, error_expected", [ ("default_color_wheel", None), ("non_existing", ValueError), ([(0.2, 0.3), (0.4, 0.5)], None), (0, ValueError), ], ) def test_get_color_wheel(colors, error_...
error_expected)
added
e9f6167b102cce2739eed3ce5292109c3dda8599475edfddcaa3efdee9919e38
pytest.raises|test_get_color_wheel|import pytest from cx_core.color_helper import get_color_wheel @pytest.mark.parametrize( "colors, error_expected", [ ("default_color_wheel", None), ("non_existing", ValueError), ([(0.2, 0.3), (0.4, 0.5)], None), (0, ValueError), ], ) def test_get_color_wheel(colors, error_expected): #...
null
null
null
xaviml/controllerx
train
41
cb8aac209bf599b60f7458bc79963e4b781f62aa
train
tests/core/type/light_controller_test.py
train
xaviml/controllerx:tests/core/type/light_controller_test.py
61
13
pytest.raises
test_initialize_and_get_light
from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.minmax_stepper import Mi...
ValueError)
modified
80be396ac54b6ce68e8c40dde2d5494a9190f0584c054aac4fbb5804db12f77f
pytest.raises|test_initialize_and_get_light|from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper fr...
ValueError)
61
13
xaviml/controllerx
train
41
cb8aac209bf599b60f7458bc79963e4b781f62aa
train
tests/core/type/light_controller_test.py
train
xaviml/controllerx:tests/core/type/light_controller_test.py
380
4
assert
test_set_value
from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.minmax_stepper import Mi...
expected_calls
modified
36af2c16409ac3e6696ca92eaf342426aafbb3331a9504728c90149e406587a7
assert|test_set_value|from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.min...
expected_calls
380
4
xaviml/controllerx
train
41
cb8aac209bf599b60f7458bc79963e4b781f62aa
train
tests/core/type/light_controller_test.py
train
xaviml/controllerx:tests/core/type/light_controller_test.py
561
8
assert_*
test_hold
from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.minmax_stepper import Mi...
expected_direction)
modified
9244ebf0371feab91c7aed1aca9bf1344e1979239485ea967505bdd105cd9a50
assert_*|test_hold|from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.minmax...
expected_direction)
561
8
xaviml/controllerx
train
41
cb8aac209bf599b60f7458bc79963e4b781f62aa
train
tests/core/type/light_controller_test.py
train
xaviml/controllerx:tests/core/type/light_controller_test.py
580
8
assert
test_hold_loop
from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.minmax_stepper import Mi...
exceeded
modified
128ed1a4ed594744c1801357c88a4d68248a04b44f8b65020c67a3d4be501bad
assert|test_hold_loop|from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.min...
exceeded
580
8
xaviml/controllerx
train
42
f223031b4cc347e68302914a24868421b3658fbc
train
tests/core/feature_support/cover_support_test.py
train
xaviml/controllerx:tests/core/feature_support/cover_support_test.py
36
4
assert
test_init
from cx_core.feature_support.cover import CoverSupport import pytest from cx_core.feature_support import FeatureSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {CoverSupport.OPEN},), ( 15, { CoverSupport.OPEN, ...
expected_supported_features
modified
14f50f92dc307d7b006376df031e777901af1ffa6dcc3d8b542581f0afbc6015
assert|test_init|from cx_core.feature_support.cover import CoverSupport import pytest from cx_core.feature_support import FeatureSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {CoverSupport.OPEN},), ( 15, { CoverSupport.OPEN, CoverSupport.CLOSE, CoverSupport.SET_COVER_POSITION, CoverSupp...
expected_supported_features
36
4
xaviml/controllerx
train
42
f223031b4cc347e68302914a24868421b3658fbc
train
tests/core/feature_support/feature_support_test.py
train
xaviml/controllerx:tests/core/feature_support/feature_support_test.py
49
4
assert
test_is_supported
from cx_core.feature_support import FeatureSupport import pytest @pytest.mark.parametrize( "number, features, expected_features", [ (15, [1, 2, 4, 8, 16, 32, 64], {1, 2, 4, 8}), (16, [1, 2, 4, 8, 16, 32, 64], {16}), (31, [1, 2, 4, 8, 16, 64], {1, 2, 4, 8, 16}), (70, [1, 2, 4, 8...
is_supported
modified
98c9fca11e023f9bd2c7ca3caebbf9822c99317cfed2388c1cdd7d54da99a578
assert|test_is_supported|from cx_core.feature_support import FeatureSupport import pytest @pytest.mark.parametrize( "number, features, expected_features", [ (15, [1, 2, 4, 8, 16, 32, 64], {1, 2, 4, 8}), (16, [1, 2, 4, 8, 16, 32, 64], {16}), (31, [1, 2, 4, 8, 16, 64], {1, 2, 4, 8, 16}), (70, [1, 2, 4, 8, 16, 64], {2, 4,...
is_supported
49
4
xaviml/controllerx
train
42
f223031b4cc347e68302914a24868421b3658fbc
train
tests/core/feature_support/feature_support_test.py
train
xaviml/controllerx:tests/core/feature_support/feature_support_test.py
67
4
assert
test_not_supported
from cx_core.feature_support import FeatureSupport import pytest @pytest.mark.parametrize( "number, features, expected_features", [ (15, [1, 2, 4, 8, 16, 32, 64], {1, 2, 4, 8}), (16, [1, 2, 4, 8, 16, 32, 64], {16}), (31, [1, 2, 4, 8, 16, 64], {1, 2, 4, 8, 16}), (70, [1, 2, 4, 8...
is_supported
modified
6cfe6a2225bef4e75846e109580252e5d48d5dbe0c46c26dae82eb9fb72d2516
assert|test_not_supported|from cx_core.feature_support import FeatureSupport import pytest @pytest.mark.parametrize( "number, features, expected_features", [ (15, [1, 2, 4, 8, 16, 32, 64], {1, 2, 4, 8}), (16, [1, 2, 4, 8, 16, 32, 64], {16}), (31, [1, 2, 4, 8, 16, 64], {1, 2, 4, 8, 16}), (70, [1, 2, 4, 8, 16, 64], {2, 4...
is_supported
67
4
xaviml/controllerx
train
42
f223031b4cc347e68302914a24868421b3658fbc
train
tests/core/feature_support/light_support_test.py
train
xaviml/controllerx:tests/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
732ca288ed377927a7d9e8705b1e86282d02a86038ed48097d2479879fb5ca5e
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
42
f223031b4cc347e68302914a24868421b3658fbc
train
tests/core/feature_support/media_player_support_test.py
val
xaviml/controllerx:tests/core/feature_support/media_player_support_test.py
38
4
assert
test_init
import pytest from cx_core.feature_support import FeatureSupport 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
modified
8708b7ccc3f43c7a534cfd1ab9de2566ce7826a96ac00433af4244dc77c5780d
assert|test_init|import pytest from cx_core.feature_support import FeatureSupport from cx_core.feature_support.media_player import MediaPlayerSupport @pytest.mark.parametrize( "number, expected_supported_features", [ (1, {MediaPlayerSupport.PAUSE}), (4, {MediaPlayerSupport.VOLUME_SET}), ( 57, { MediaPlayerSupport.NEXT_...
expected_supported_features
38
4
xaviml/controllerx
train
42
f223031b4cc347e68302914a24868421b3658fbc
train
tests/core/type/cover_controller_test.py
val
xaviml/controllerx:tests/core/type/cover_controller_test.py
74
8
assert_*
test_open
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_async_function @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = CoverController() mocker.patch.obj...
expected_service)
modified
5244ea55273901950b6c9f7ba17cef3857e71851b6cf0eb9dfe26ed083a42c2d
assert_*|test_open|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_async_function @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = CoverController() mocker.p...
expected_service)
74
8
xaviml/controllerx
train
42
f223031b4cc347e68302914a24868421b3658fbc
train
tests/core/type/cover_controller_test.py
val
xaviml/controllerx:tests/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_async_function @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = CoverController() mocker.patch.obj...
"cover/stop_cover")
modified
fb62ba86b7fd66df962f1ff08324a86b8606b8122d97252c1f9bdaa09220ee14
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_async_function @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = CoverController() mocker.p...
"cover/stop_cover")
118
4
xaviml/controllerx
train
42
f223031b4cc347e68302914a24868421b3658fbc
train
tests/core/type/light_controller_test.py
train
xaviml/controllerx:tests/core/type/light_controller_test.py
445
4
assert_*
test_sync
from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.minmax_stepper import Mi...
"light/turn_on")
modified
91bbb77fe6c96812d0039e008dd4c720692fe1b82c813a1e398090d0ed8dac1c
assert_*|test_sync|from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.minmax...
"light/turn_on")
445
4
xaviml/controllerx
train
43
16afcada24f3b9d4e8829835a619d327ddd4144b
train
tests/cx_devices/aqara_test.py
train
xaviml/controllerx:tests/cx_devices/aqara_test.py
20
4
assert
test_zha_action_MFKZQ01LMLightController
import pytest from cx_devices.aqara import MFKZQ01LMLightController, WXKG01LMLightController @pytest.mark.parametrize( "command, args, expected_action", [ ("shake", {}, "shake"), ("knock", {}, "knock"), ("slide", {}, "slide"), ("flip", {"flip_degrees": 90}, "flip90"), (...
expected_action
added
06c4788d68b6626d426df2571af8d092daa89b1e625aeb889f859cc0c9700441
assert|test_zha_action_MFKZQ01LMLightController|import pytest from cx_devices.aqara import MFKZQ01LMLightController, WXKG01LMLightController @pytest.mark.parametrize( "command, args, expected_action", [ ("shake", {}, "shake"), ("knock", {}, "knock"), ("slide", {}, "slide"), ("flip", {"flip_degrees": 90}, "flip90"), ("f...
null
null
null
xaviml/controllerx
train
43
16afcada24f3b9d4e8829835a619d327ddd4144b
train
tests/cx_devices/aqara_test.py
train
xaviml/controllerx: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( "command, args, expected_action", [ ("shake", {}, "shake"), ("knock", {}, "knock"), ("slide", {}, "slide"), ("flip", {"flip_degrees": 90}, "flip90"), (...
expected_action
added
16b49b14faea068b024947be3ac50799a4d1bb4d02e74bce55dab3ed89b77cd3
assert|test_zha_action_WXKG01LMLightController|import pytest from cx_devices.aqara import MFKZQ01LMLightController, WXKG01LMLightController @pytest.mark.parametrize( "command, args, expected_action", [ ("shake", {}, "shake"), ("knock", {}, "knock"), ("slide", {}, "slide"), ("flip", {"flip_degrees": 90}, "flip90"), ("fl...
null
null
null
xaviml/controllerx
train
44
5b84af20a9cbe57f458e7c37d2fe9d05e552322b
train
tests/cx_devices/aqara_test.py
train
xaviml/controllerx:tests/cx_devices/aqara_test.py
20
4
assert
test_zha_action_MFKZQ01LMLightController
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
added
c6c5e55733eef75f85b258439a58df86075d79e150ed23ab3812371e5e8e2b4e
assert|test_zha_action_MFKZQ01LMLightController|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"...
null
null
null
xaviml/controllerx
train
44
5b84af20a9cbe57f458e7c37d2fe9d05e552322b
train
tests/cx_devices/aqara_test.py
train
xaviml/controllerx: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
added
d26508e56c56d649aa2b90d1511d6d401315d92d43e17b9b73654e5f7f1283f5
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":...
null
null
null
xaviml/controllerx
train
44
5b84af20a9cbe57f458e7c37d2fe9d05e552322b
train
tests/cx_devices/legrand_test.py
train
xaviml/controllerx:tests/cx_devices/legrand_test.py
21
4
assert
test_get_zha_action_LegrandWallController
import pytest from cx_devices.legrand import get_zha_action_LegrandWallController @pytest.mark.parametrize( "data, expected_action", [ ({"endpoint_id": 1, "command": "off", "args": []}, "1_off"), ({"endpoint_id": 1, "command": "on", "args": []}, "1_on"), ({"command": "off", "args": []...
expected_action
added
a99346ba52804c1373eb140ce7fcdd70eb816ca42cedb3ecd87e7aef8e6885bc
assert|test_get_zha_action_LegrandWallController|import pytest from cx_devices.legrand import get_zha_action_LegrandWallController @pytest.mark.parametrize( "data, expected_action", [ ({"endpoint_id": 1, "command": "off", "args": []}, "1_off"), ({"endpoint_id": 1, "command": "on", "args": []}, "1_on"), ({"command": "of...
null
null
null
xaviml/controllerx
train
45
473a3cf5c3a497a334569f073baeacd555c4342d
train
tests/cx_core/custom_controller_test.py
train
xaviml/controllerx:tests/cx_core/custom_controller_test.py
156
8
assert_*
test_call_service_controller
import pytest from cx_core import ( CallServiceController, Controller, CustomLightController, CustomMediaPlayerController, ) from cx_core.custom_controller import CustomCoverController, CustomSwitchController from tests.test_utils import fake_async_function @pytest.mark.parametrize( "custom_cls, ...
expected_service)
modified
37702ceca6db4df6e97eefaf0b32c626ea0f8c09d5b2a0db3051957c73da6147
assert_*|test_call_service_controller|import pytest from cx_core import ( CallServiceController, Controller, CustomLightController, CustomMediaPlayerController, ) from cx_core.custom_controller import CustomCoverController, CustomSwitchController from tests.test_utils import fake_async_function @pytest.mark.parametrize...
expected_service)
156
8
xaviml/controllerx
train
45
473a3cf5c3a497a334569f073baeacd555c4342d
train
tests/cx_core/integration/z2m_test.py
train
xaviml/controllerx:tests/cx_core/integration/z2m_test.py
33
8
assert_*
test_event_callback
from typing import Any import pytest from cx_core.integration.z2m import Z2MIntegration @pytest.mark.parametrize( "data, action_key, handle_action_called, expected_called_with", [ ({"payload": '{"event_1": "action_1"}'}, "event_1", True, "action_1"), ({}, None, False, Any), ({"payload...
expected_called_with)
added
ce1303e8028f2eed9fe57820d2b6362e3c6e1044572ecd74feadc106fd5111b8
assert_*|test_event_callback|from typing import Any import pytest from cx_core.integration.z2m import Z2MIntegration @pytest.mark.parametrize( "data, action_key, handle_action_called, expected_called_with", [ ({"payload": '{"event_1": "action_1"}'}, "event_1", True, "action_1"), ({}, None, False, Any), ({"payload": '{"...
null
null
null
xaviml/controllerx
train
45
473a3cf5c3a497a334569f073baeacd555c4342d
train
tests/cx_core/release_hold_controller_test.py
train
xaviml/controllerx: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_async_function class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass @pytest.fixture def sut(hass_mock): c = FakeReleaseHoldController() c.args = {} c...
not sut.on_hold
modified
87e1bfa812df8f00624fc0bceac0f9da98778a5807b8dc2fabe823df3f08aca8
assert|test_release|import pytest from cx_core.controller import Controller, ReleaseHoldController from tests.test_utils import fake_async_function class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass @pytest.fixture def sut(hass_mock): c = FakeReleaseHoldController() c.args = {} c.delay = ...
not sut.on_hold
39
4
xaviml/controllerx
train
45
473a3cf5c3a497a334569f073baeacd555c4342d
train
tests/cx_core/release_hold_controller_test.py
train
xaviml/controllerx:tests/cx_core/release_hold_controller_test.py
64
4
assert
test_hold
import pytest from cx_core.controller import Controller, ReleaseHoldController from tests.test_utils import fake_async_function class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass @pytest.fixture def sut(hass_mock): c = FakeReleaseHoldController() c.args = {} c...
expected_calls
added
4bc3fdde6efe2d1eec2f609256b19accf3ed12badb7ef6c5a8ec577523aea189
assert|test_hold|import pytest from cx_core.controller import Controller, ReleaseHoldController from tests.test_utils import fake_async_function class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass @pytest.fixture def sut(hass_mock): c = FakeReleaseHoldController() c.args = {} c.delay = 0 c...
null
null
null
xaviml/controllerx
train
45
473a3cf5c3a497a334569f073baeacd555c4342d
train
tests/cx_core/stepper/minmax_stepper_test.py
train
xaviml/controllerx:tests/cx_core/stepper/minmax_stepper_test.py
121
4
assert
test_minmax_stepper_get_direction
import pytest from cx_core.stepper.minmax_stepper import MinMaxStepper from cx_core.stepper import Stepper @pytest.mark.parametrize( "minmax, value, direction, previous_direction, expected_direction, expected_new_previous_direction", [ ((0, 10), 10, Stepper.DOWN, None, Stepper.DOWN, None), ((...
expected_new_previous_direction
added
f355b288c5a50d64447de9ea74a785758752df1cff87d5a36a9a226824c765d4
assert|test_minmax_stepper_get_direction|import pytest from cx_core.stepper.minmax_stepper import MinMaxStepper from cx_core.stepper import Stepper @pytest.mark.parametrize( "minmax, value, direction, previous_direction, expected_direction, expected_new_previous_direction", [ ((0, 10), 10, Stepper.DOWN, None, Stepper.D...
null
null
null
xaviml/controllerx
train
45
473a3cf5c3a497a334569f073baeacd555c4342d
train
tests/cx_core/type/media_player_controller_test.py
train
xaviml/controllerx:tests/cx_core/type/media_player_controller_test.py
146
8
assert_*
test_hold_loop
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_async_function @pytest.fixture @pytest.mark.asyncio async def sut(monkeypatch, hass_mock, mocker): ...
f"media_player/volume_{direction_input}")
added
7917e5b282e6dda09958191d88026e3ab1344afdd34b600216a39ad4aedbba4a
assert_*|test_hold_loop|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_async_function @pytest.fixture @pytest.mark.asyncio async def sut(monkeypatch, ...
null
null
null
xaviml/controllerx
train
45
473a3cf5c3a497a334569f073baeacd555c4342d
train
tests/cx_core/type_controller_test.py
test
xaviml/controllerx:tests/cx_core/type_controller_test.py
75
8
assert
test_check_domain
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() c.args = {} return c # All entities from '{entity}' must be from {domain} domain (e.g. {...
expected_error_message
added
053964915661072c5d9faf06ac36c234e55e7d111e9f0fcac25c39ea4c818a12
assert|test_check_domain|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() c.args = {} return c # All entities from '{entity}' must be from {domain} domain (e.g. {domain...
null
null
null
xaviml/controllerx
train
45
473a3cf5c3a497a334569f073baeacd555c4342d
train
tests/cx_devices/phillips_test.py
train
xaviml/controllerx:tests/cx_devices/phillips_test.py
16
4
assert
test_zha_action_HueDimmerController
import pytest from cx_devices.philips 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_HueD...
expected_action
added
ceb056d8db9054921d59586419a4c5e97b6663e0980a9c96ddee62c709052a5a
assert|test_zha_action_HueDimmerController|import pytest from cx_devices.philips 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...
null
null
null
xaviml/controllerx
train
46
b9cc91779299bce775df8f150868279f94745e82
train
tests/cx_core/integration/z2m_test.py
train
xaviml/controllerx:tests/cx_core/integration/z2m_test.py
34
8
assert_*
test_event_callback
from typing import Any import pytest from cx_core.integration.z2m import Z2MIntegration @pytest.mark.parametrize( "data, action_key, handle_action_called, expected_called_with", [ ({"payload": '{"event_1": "action_1"}'}, "event_1", True, "action_1"), ({}, None, False, Any), ({"payload...
expected_called_with)
modified
6ce3d92c956482093975a6db27bcd74fca345d1acb3a637825853436037e92ce
assert_*|test_event_callback|from typing import Any import pytest from cx_core.integration.z2m import Z2MIntegration @pytest.mark.parametrize( "data, action_key, handle_action_called, expected_called_with", [ ({"payload": '{"event_1": "action_1"}'}, "event_1", True, "action_1"), ({}, None, False, Any), ({"payload": '{"...
expected_called_with)
33
8
xaviml/controllerx
train
47
c270240dd23074d369f9791e6daef6bc7b033dca
train
tests/integ_tests/integ_test.py
train
xaviml/controllerx:tests/integ_tests/integ_test.py
68
4
assert
test_example_config
import asyncio import glob import importlib from pathlib import Path 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 / "config.yaml" with ...
expected_calls_count
added
6fb53b2894a8a3eb9b0039170a9cb2c52dbf6b01fe5642b3bae689b0341419aa
assert|test_example_config|import asyncio import glob import importlib from pathlib import Path 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 / "config.yaml" with open...
null
null
null
xaviml/controllerx
train
47
c270240dd23074d369f9791e6daef6bc7b033dca
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
225
4
assert
test_check_ad_version_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): return fake_controller @py...
"Please upgrade to AppDaemon 4.x"
modified
8c92b06d0a165a6cc67b883757e586bc717be82be1f97ce8db3633ecc909154f
assert|test_check_ad_version_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_contr...
"Please upgrade to AppDaemon 4.x"
225
4
xaviml/controllerx
train
47
c270240dd23074d369f9791e6daef6bc7b033dca
train
tests/unit_tests/cx_core/custom_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/custom_controller_test.py
154
4
assert
test_call_service_controller
import pytest from cx_core import ( CallServiceController, Controller, CustomLightController, CustomMediaPlayerController, ) from cx_core.custom_controller import CustomCoverController, CustomSwitchController from tests.test_utils import fake_fn @pytest.mark.parametrize( "custom_cls, mapping, act...
len(expected_calls)
modified
de7f82764d9aa99feb93940f455cdb49aa7b0292cf1a5bf542ef415914566640
assert|test_call_service_controller|import pytest from cx_core import ( CallServiceController, Controller, CustomLightController, CustomMediaPlayerController, ) from cx_core.custom_controller import CustomCoverController, CustomSwitchController from tests.test_utils import fake_fn @pytest.mark.parametrize( "custom_cls,...
len(expected_calls)
154
4
xaviml/controllerx
train
47
c270240dd23074d369f9791e6daef6bc7b033dca
train
tests/unit_tests/cx_core/release_hold_controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/release_hold_controller_test.py
64
4
assert
test_hold
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() c.args = {} c.delay = 0 ...
expected_calls
modified
8fc990c65b56a5d67c1b37091a117ff10dc3115c1c0cf56c4d90074c97e4dbe3
assert|test_hold|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() c.args = {} c.delay = 0 c.hold_releas...
expected_calls
64
4
xaviml/controllerx
train
47
c270240dd23074d369f9791e6daef6bc7b033dca
train
tests/unit_tests/cx_core/type/cover_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/cover_controller_test.py
41
13
pytest.raises
test_initialize
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() mocker.patch.object(TypeCont...
ValueError)
modified
b2299ee18f98067629e7503feaa5c909abb7aa275c05f72c7991430fab73463d
pytest.raises|test_initialize|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() mocker.pa...
ValueError)
41
13
xaviml/controllerx
train
47
c270240dd23074d369f9791e6daef6bc7b033dca
train
tests/unit_tests/cx_core/type/cover_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/cover_controller_test.py
136
8
assert_*
test_toggle
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() mocker.patch.object(TypeCont...
"cover/stop_cover")
modified
7a6490b30107e03c1c5186984a28caf8891d373dc02ebaee765e96aca39b8a58
assert_*|test_toggle|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() mocker.patch.objec...
"cover/stop_cover")
134
8
xaviml/controllerx
train
47
c270240dd23074d369f9791e6daef6bc7b033dca
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
352
4
assert_*
test_toggle
from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.minmax_stepper import Mi...
"light/toggle")
modified
1e585e35afea18fb95f2c8307cc682c06500d1875c3edea98759fd302fe6db5a
assert_*|test_toggle|from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.minm...
"light/toggle")
350
4
xaviml/controllerx
train
47
c270240dd23074d369f9791e6daef6bc7b033dca
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
09e1e63217d61b9d414e43cefce325e6d823f7b441f6a5c450f678662f7c6c44
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
48
7295e647d37115a75f56b82c4c96daf2e19450e8
train
tests/integ_tests/integ_test.py
train
xaviml/controllerx:tests/integ_tests/integ_test.py
76
4
assert
test_example_config
import asyncio import glob import importlib from pathlib import Path 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 / "config.yaml" with ...
expected_calls_count
added
cf3e441d9ba84aea9ab7906755deca2cd5aabee192aa835d4808a0ea37e7eb6c
assert|test_example_config|import asyncio import glob import importlib from pathlib import Path 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 / "config.yaml" with open...
null
null
null
xaviml/controllerx
train
49
b8e3dfec383e49e4cbcc12a7037a21ebcb6bc825
train
tests/integ_tests/integ_test.py
train
xaviml/controllerx:tests/integ_tests/integ_test.py
70
4
assert
test_example_config
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
added
23822b81230c7a35edb7be7e96f011a21b22146761f7c6c7b1ab996d35ddcde6
assert|test_example_config|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).paren...
null
null
null
xaviml/controllerx
train
49
b8e3dfec383e49e4cbcc12a7037a21ebcb6bc825
train
tests/unit_tests/cx_devices/devices_test.py
train
xaviml/controllerx:tests/unit_tests/cx_devices/devices_test.py
47
4
assert
test_devices
import pytest from tests.test_utils import get_classes, get_controller import cx_devices as devices_module from cx_core import Controller from cx_core.controller import ReleaseHoldController def check_mapping(mapping, all_possible_actions, device): device_name = device.__class__.__name__ if mapping is None: ...
None
added
5be59cba4d60212a80a53d6632d4923f558a1c22c2216b740694fcf6715858fd
assert|test_devices|import pytest from tests.test_utils import get_classes, get_controller import cx_devices as devices_module from cx_core import Controller from cx_core.controller import ReleaseHoldController def check_mapping(mapping, all_possible_actions, device): device_name = device.__class__.__name__ if mapping ...
null
null
null
xaviml/controllerx
train
50
ad4e91ddf23aea47246e9d54455bc047482ea831
train
tests/integ_tests/integ_test.py
train
xaviml/controllerx:tests/integ_tests/integ_test.py
71
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
added
3f571908baf9702ee316d074e3f4067d87dfd8d761c5c6fdb5aea1256951ef1a
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...
null
null
null
xaviml/controllerx
train
50
ad4e91ddf23aea47246e9d54455bc047482ea831
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
211
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
19a79e3a5b8fac82af9765e14fd17ac05aea249028e013c9983d620b3517f27e
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
50
ad4e91ddf23aea47246e9d54455bc047482ea831
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
269
4
assert
test_get_actions_mapping_happyflow
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...
"this_is_mapping"
added
14431c80b40125c661484c713f968b1af066070d3612152c43432dbe064bac25
assert|test_get_actions_mapping_happyflow|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_control...
null
null
null
xaviml/controllerx
train
50
ad4e91ddf23aea47246e9d54455bc047482ea831
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
276
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
d8a13f304acea8b7fa2d6c0e582bca76224db42ca8e820a07dae6f19def4c057
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
50
ad4e91ddf23aea47246e9d54455bc047482ea831
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
398
4
assert_*
test_call_service
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...
service)
added
ea46b4950fd5e4a78fa6cbfb919a147b66f3b77e113b5d9af05db10a6cc75851
assert_*|test_call_service|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_cont...
null
null
null
xaviml/controllerx
train
51
e6f27fd4c7ea7cb8ab59c9216e0ddb587430dbfa
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
184
13
pytest.raises
test_merge_mapping
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
2d08bd7f8efe20ae6172be7d722c74a84e7936d5062a5ef2e41a6e6ab70cd0dd
pytest.raises|test_merge_mapping|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): fak...
null
null
null
xaviml/controllerx
train
51
e6f27fd4c7ea7cb8ab59c9216e0ddb587430dbfa
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
252
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
d7eba631abdb3c17ea83f137a7bcadbc08fbf70fd8edb0ff22cef2a0fc558005
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
51
e6f27fd4c7ea7cb8ab59c9216e0ddb587430dbfa
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
310
4
assert
test_get_actions_mapping_happyflow
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...
"this_is_mapping"
added
6f74948079af2cd21c40014637a38f5d5788ff07e792f383c7a0dbb6547cf0f3
assert|test_get_actions_mapping_happyflow|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_control...
null
null
null
xaviml/controllerx
train
51
e6f27fd4c7ea7cb8ab59c9216e0ddb587430dbfa
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
391
8
assert_*
test_call_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...
handle)
added
78e310aa2a6bf56eb962bfc2cdf688cc2d20cd39a7f55490fe70b33ae22854ca
assert_*|test_call_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
52
294d10bf536796b4d038ffcdb070f80b1514aa32
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
244
4
assert
test_change_light_state
from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.minmax_stepper import Mi...
expected_stop
modified
33b709096fb3342da5d0010cb2f693f311cddccee1ca54b146547a3e04182159
assert|test_change_light_state|from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.st...
expected_stop
242
4
xaviml/controllerx
train
52
294d10bf536796b4d038ffcdb070f80b1514aa32
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
342
4
assert_*
test_off
from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.minmax_stepper import Mi...
"light/turn_off")
modified
6f2003fd320c6381217408726ec55945af5da6ea972018acd663444104aa174d
assert_*|test_off|from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.minmax_...
"light/turn_off")
340
4
xaviml/controllerx
train
52
294d10bf536796b4d038ffcdb070f80b1514aa32
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
354
4
assert_*
test_toggle
from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.minmax_stepper import Mi...
"light/toggle")
modified
8b207419c833d0e040fb900945614f8aecd00818e03a3a90df8302d245e08413
assert_*|test_toggle|from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.minm...
"light/toggle")
352
4
xaviml/controllerx
train
52
294d10bf536796b4d038ffcdb070f80b1514aa32
train
tests/unit_tests/cx_core/type/light_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/light_controller_test.py
632
8
assert_*
test_hold_loop
from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.minmax_stepper import Mi...
"hold")
added
78a0a4beab0f8de3daebdcf5fe715a98fac93431a9789681ed9e1ced8cbcc3f9
assert_*|test_hold_loop|from cx_core.color_helper import get_color_wheel import pytest from cx_core import LightController, ReleaseHoldController from cx_core.feature_support.light import LightSupport from cx_core.stepper import Stepper from cx_core.stepper.circular_stepper import CircularStepper from cx_core.stepper.m...
null
null
null
xaviml/controllerx
train
53
fff73a9519c318aa7643c64e5a08340dce83ca49
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
206
4
assert
test_get_list
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
modified
f2a419f6c5f726fe35bb66939ef0360e3e07c93f05a8fb4e3f276693f4dbb90f
assert|test_get_list|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...
expected
207
4
xaviml/controllerx
train
53
fff73a9519c318aa7643c64e5a08340dce83ca49
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
390
8
assert_*
test_call_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...
handle)
modified
1ff8d303e3adb92ba9684d185e020f7806f2569007748a097e77f6449841ffe3
assert_*|test_call_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...
handle)
391
8
xaviml/controllerx
train
53
fff73a9519c318aa7643c64e5a08340dce83ca49
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
416
8
assert
test_get_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...
"The action value from the action mapping should be a list or a function"
modified
927ca70d4f684a479081ab0d83aac53bc08820642046b2119a35db175eeb9be8
assert|test_get_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_controll...
"The action value from the action mapping should be a list or a function"
417
8
xaviml/controllerx
train
53
fff73a9519c318aa7643c64e5a08340dce83ca49
train
tests/unit_tests/cx_core/controller_test.py
val
xaviml/controllerx:tests/unit_tests/cx_core/controller_test.py
438
4
assert_*
test_call_service
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...
service)
modified
b8d789a18ae80bf7d3cf1f11957813feb041dc36d3bce07083c3cd85bac825e6
assert_*|test_call_service|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_cont...
service)
439
4
xaviml/controllerx
train
53
fff73a9519c318aa7643c64e5a08340dce83ca49
train
tests/unit_tests/cx_core/type/cover_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/cover_controller_test.py
74
8
assert_*
test_open
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() mocker.patch.object(TypeCont...
expected_service)
modified
f34e8d8d809979d825e4a10f3289339ad2efed17ff94daa323fc35269a7ca4bb
assert_*|test_open|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() mocker.patch.object(...
expected_service)
74
8
xaviml/controllerx
train
53
fff73a9519c318aa7643c64e5a08340dce83ca49
train
tests/unit_tests/cx_core/type/cover_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/cover_controller_test.py
107
8
assert_*
test_close
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() mocker.patch.object(TypeCont...
expected_service)
modified
857cb59dff37ab43656706ce166ae36e20941632274874d7b0b079f2b20bf2a4
assert_*|test_close|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() mocker.patch.object...
expected_service)
107
8
xaviml/controllerx
train
53
fff73a9519c318aa7643c64e5a08340dce83ca49
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() mocker.patch.object(TypeCont...
"cover/stop_cover")
modified
0869e33df0768beda3c01452464b6bc23b7b9462b3153fc4fd8311749acd8350
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() mocker.patch.object(...
"cover/stop_cover")
118
4
xaviml/controllerx
train
53
fff73a9519c318aa7643c64e5a08340dce83ca49
train
tests/unit_tests/cx_core/type/cover_controller_test.py
train
xaviml/controllerx:tests/unit_tests/cx_core/type/cover_controller_test.py
136
8
assert_*
test_toggle
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() mocker.patch.object(TypeCont...
"cover/stop_cover")
modified
5d93fc60aea28142c660be76350a9be3d0d7d716a84d0543daa57316247524f0
assert_*|test_toggle|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() mocker.patch.objec...
"cover/stop_cover")
136
8