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 | 13 | fa851b7ae6ae1f742de01db821ae77b47eb81d16 | train | tests/core/type_controller_test.py | train | xaviml/controllerx:tests/core/type_controller_test.py | 80 | 8 | assert_* | test_get_entity_state | import pytest
from core import integration as integration_module
from core.controller import Controller, TypeController
from tests.utils import hass_mock
class FakeTypeController(TypeController):
def get_domain(self):
return "domain"
@pytest.fixture
def sut(hass_mock):
c = FakeTypeController()
... | entity_input) | added | 0107c70ce99c862fdb3b9bfffc36ed4d59a38311fbc6e38898a37a7e172c0761 | assert_*|test_get_entity_state|import pytest from core import integration as integration_module from core.controller import Controller, TypeController from tests.utils import hass_mock class FakeTypeController(TypeController): def get_domain(self): return "domain" @pytest.fixture def sut(hass_mock): c = FakeTypeControl... | null | null | null |
xaviml/controllerx | train | 13 | fa851b7ae6ae1f742de01db821ae77b47eb81d16 | train | tests/core/type_controller_test.py | train | xaviml/controllerx:tests/core/type_controller_test.py | 81 | 8 | assert_* | test_get_entity_state | import pytest
from core import integration as integration_module
from core.controller import Controller, TypeController
from tests.utils import hass_mock
class FakeTypeController(TypeController):
def get_domain(self):
return "domain"
@pytest.fixture
def sut(hass_mock):
c = FakeTypeController()
... | "entity.test") | added | c3a8409fa3d9823f1450cb14ac044f35d6f5362d9fedf20846b8d67dfc6f1ac7 | assert_*|test_get_entity_state|import pytest from core import integration as integration_module from core.controller import Controller, TypeController from tests.utils import hass_mock class FakeTypeController(TypeController): def get_domain(self): return "domain" @pytest.fixture def sut(hass_mock): c = FakeTypeControl... | null | null | null |
xaviml/controllerx | train | 14 | 33a5c1b2d0f70b30efc586a9310e128bfe24df83 | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 125 | 13 | pytest.raises | test_get_option | from collections import defaultdict
import appdaemon.plugins.hass.hassapi as hass
import pytest
from tests.utils import IntegrationMock, fake_controller, hass_mock
from core import integration as integration_module
from core.controller import Controller, action
@pytest.fixture
def sut(fake_controller):
return f... | ValueError) | modified | 3cb6fe690dea6a800f030553570ce0d3d9a923435ee5acb78eabacec4a4443e7 | pytest.raises|test_get_option|from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from tests.utils import IntegrationMock, fake_controller, hass_mock from core import integration as integration_module from core.controller import Controller, action @pytest.fixture def sut(fake... | ValueError) | 124 | 13 |
xaviml/controllerx | train | 14 | 33a5c1b2d0f70b30efc586a9310e128bfe24df83 | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 233 | 4 | assert | test_handle_action | from collections import defaultdict
import appdaemon.plugins.hass.hassapi as hass
import pytest
from tests.utils import IntegrationMock, fake_controller, hass_mock
from core import integration as integration_module
from core.controller import Controller, action
@pytest.fixture
def sut(fake_controller):
return f... | expected_calls | added | 895e18c4e53d33751414fdc5676719011fb7fc047e3e03f7368ba67e7990b821 | assert|test_handle_action|from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from tests.utils import IntegrationMock, fake_controller, hass_mock from core import integration as integration_module from core.controller import Controller, action @pytest.fixture def sut(fake_con... | null | null | null |
xaviml/controllerx | train | 14 | 33a5c1b2d0f70b30efc586a9310e128bfe24df83 | train | tests/core/custom_controller_test.py | train | xaviml/controllerx:tests/core/custom_controller_test.py | 151 | 8 | assert_* | test_call_service_controller | import pytest
from core import (
CallServiceController,
CustomLightController,
CustomMediaPlayerController,
Controller,
)
from tests.utils import hass_mock, fake_async_function
@pytest.mark.parametrize(
"custom_cls, mapping, action_input, mock_function, expected_calls",
[
(CustomLight... | expected_service) | added | b20c28aa15300014477c1e1f6a1402fd11458079c2da002a5aa3bde20426a262 | assert_*|test_call_service_controller|import pytest from core import ( CallServiceController, CustomLightController, CustomMediaPlayerController, Controller, ) from tests.utils import hass_mock, fake_async_function @pytest.mark.parametrize( "custom_cls, mapping, action_input, mock_function, expected_calls", [ (CustomLi... | null | null | null |
xaviml/controllerx | train | 14 | 33a5c1b2d0f70b30efc586a9310e128bfe24df83 | train | tests/core/release_hold_controller_test.py | train | xaviml/controllerx:tests/core/release_hold_controller_test.py | 41 | 4 | assert | test_release | import pytest
from core import integration as integration_module
from core.controller import Controller, ReleaseHoldController
from tests.utils import hass_mock, fake_async_function
class FakeReleaseHoldController(ReleaseHoldController):
def hold_loop(self):
pass
@pytest.fixture
def sut(hass_mock):
... | False | modified | 88e3693b77fbf99d03458cf570d93186743579fcd299f909849372041d443ae6 | assert|test_release|import pytest from core import integration as integration_module from core.controller import Controller, ReleaseHoldController from tests.utils import hass_mock, fake_async_function class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass @pytest.fixture def sut(hass_mock): ... | False | 40 | 4 |
xaviml/controllerx | train | 14 | 33a5c1b2d0f70b30efc586a9310e128bfe24df83 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 394 | 4 | assert | test_click | import pytest
from core import LightController, ReleaseHoldController
from tests.utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular_stepper import CircularStepper
from core import light_features
@pytest.fixture... | expected_calls | added | 3056c26a3252bbfcc901796e6786a233aa3f9524e216a176bff4d1277f3f3cff | assert|test_click|import pytest from core import LightController, ReleaseHoldController from tests.utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxStepper from core.stepper.circular_stepper import CircularStepper from core import light_features ... | null | null | null |
xaviml/controllerx | train | 14 | 33a5c1b2d0f70b30efc586a9310e128bfe24df83 | train | tests/core/type/media_player_controller_test.py | train | xaviml/controllerx:tests/core/type/media_player_controller_test.py | 80 | 4 | assert_* | test_volume_down | import pytest
from tests.utils import hass_mock
from core import MediaPlayerController, ReleaseHoldController
from core.stepper import Stepper
from core.stepper.circular_stepper import CircularStepper
from core.stepper.minmax_stepper import MinMaxStepper
@pytest.fixture
@pytest.mark.asyncio
async def sut(hass_mock, ... | "media_player/volume_set") | modified | c72efdd93dfb2b768a0617893e91a961c0918444f87a567af073a5fa7d52c4e9 | assert_*|test_volume_down|import pytest from tests.utils import hass_mock from core import MediaPlayerController, ReleaseHoldController from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.minmax_stepper import MinMaxStepper @pytest.fixture @pytest.mark.asyncio as... | "media_player/volume_set") | 78 | 4 |
xaviml/controllerx | train | 14 | 33a5c1b2d0f70b30efc586a9310e128bfe24df83 | train | tests/core/type_controller_test.py | train | xaviml/controllerx:tests/core/type_controller_test.py | 58 | 8 | assert | test_check_domain | import pytest
from core import integration as integration_module
from core.controller import Controller, TypeController
from tests.utils import hass_mock
class FakeTypeController(TypeController):
def get_domain(self):
return "domain"
@pytest.fixture
def sut(hass_mock):
c = FakeTypeController()
... | expected_error_message | added | b8e93b62e5f258a9b469eec3906cbe5855015e243e2fa63f200cb553b517753a | assert|test_check_domain|import pytest from core import integration as integration_module from core.controller import Controller, TypeController from tests.utils import hass_mock class FakeTypeController(TypeController): def get_domain(self): return "domain" @pytest.fixture def sut(hass_mock): c = FakeTypeController() ... | null | null | null |
xaviml/controllerx | train | 14 | 33a5c1b2d0f70b30efc586a9310e128bfe24df83 | train | tests/core/type_controller_test.py | train | xaviml/controllerx:tests/core/type_controller_test.py | 81 | 8 | assert_* | test_get_entity_state | import pytest
from core import integration as integration_module
from core.controller import Controller, TypeController
from tests.utils import hass_mock
class FakeTypeController(TypeController):
def get_domain(self):
return "domain"
@pytest.fixture
def sut(hass_mock):
c = FakeTypeController()
... | entity_input) | modified | 2cbcd4110ec15d2d7e80e8c823b2129d90baf466df82f4cd9cd00434210c51c6 | assert_*|test_get_entity_state|import pytest from core import integration as integration_module from core.controller import Controller, TypeController from tests.utils import hass_mock class FakeTypeController(TypeController): def get_domain(self): return "domain" @pytest.fixture def sut(hass_mock): c = FakeTypeControl... | entity_input) | 80 | 8 |
xaviml/controllerx | train | 15 | 734795c25a7cac47e11b96b73f8aec7c6c77bb24 | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 125 | 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 Controller, action
from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock
@pytest.fixture
def sut(fake_cont... | ValueError) | modified | 892b91dbe343a244f65a3fe2589fb6537f8b2557356b99b2f751207dccb370d7 | 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 Controller, action from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock @pytest... | ValueError) | 125 | 13 |
xaviml/controllerx | train | 15 | 734795c25a7cac47e11b96b73f8aec7c6c77bb24 | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 164 | 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 Controller, action
from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock
@pytest.fixture
def sut(fake_cont... | integration_name_expected | modified | 443dd16936a5e53acb4066725bb6b9f1587e51f724a9959d4db66e2ee19b2b41 | 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 Controller, action from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock @pytest.f... | integration_name_expected | 164 | 8 |
xaviml/controllerx | train | 15 | 734795c25a7cac47e11b96b73f8aec7c6c77bb24 | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 192 | 4 | assert | test_get_actions_mapping_throwing_error | from collections import defaultdict
import appdaemon.plugins.hass.hassapi as hass
import pytest
from core import integration as integration_module
from core.controller import Controller, action
from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock
@pytest.fixture
def sut(fake_cont... | "This controller does not support integration-test." | modified | 34df2dfa3ee285a32c6444a8167d094de60e0738a64fd507baf452d4edf53148 | assert|test_get_actions_mapping_throwing_error|from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from core import integration as integration_module from core.controller import Controller, action from tests.utils import IntegrationMock, fake_async_function, fake_controller, ... | "This controller does not support integration-test." | 192 | 4 |
xaviml/controllerx | train | 15 | 734795c25a7cac47e11b96b73f8aec7c6c77bb24 | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 286 | 13 | pytest.raises | test_get_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 Controller, action
from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock
@pytest.fixture
def sut(fake_cont... | ValueError) | added | 970febcdd1c19f91ba354566c969bba8c181383a049b9419467f9f0aed3411f6 | pytest.raises|test_get_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 Controller, action from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock @pytest... | null | null | null |
xaviml/controllerx | train | 16 | 254bb44ff4b4cac4b8c36c4ac5718ee2ffa0575e | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 222 | 4 | assert_* | test_call_light_service | import pytest
from core import LightController, ReleaseHoldController
from tests.utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular_stepper import CircularStepper
from core import light_features
@pytest.fixture... | "test_service") | added | a78921d37b23deb23ca7d415f3b76274a9cf224ce9efd0a4d04b3aa986a0dfb3 | assert_*|test_call_light_service|import pytest from core import LightController, ReleaseHoldController from tests.utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxStepper from core.stepper.circular_stepper import CircularStepper from core import ... | null | null | null |
xaviml/controllerx | train | 16 | 254bb44ff4b4cac4b8c36c4ac5718ee2ffa0575e | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 244 | 4 | assert_* | test_off | import pytest
from core import LightController, ReleaseHoldController
from tests.utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular_stepper import CircularStepper
from core import light_features
@pytest.fixture... | "light/turn_off") | added | 3a8a7460cd8e9dc322ba21c46507e942209195040faa6589aefb38e74ab00b32 | assert_*|test_off|import pytest from core import LightController, ReleaseHoldController from tests.utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxStepper from core.stepper.circular_stepper import CircularStepper from core import light_features ... | null | null | null |
xaviml/controllerx | train | 16 | 254bb44ff4b4cac4b8c36c4ac5718ee2ffa0575e | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 313 | 4 | assert | test_on_min | import pytest
from core import LightController, ReleaseHoldController
from tests.utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular_stepper import CircularStepper
from core import light_features
@pytest.fixture... | Stepper.TOGGLE_DOWN | added | cbfee6408caece5ef23848c78143ba73c896bbc7e48f099f822c941636cd1b26 | assert|test_on_min|import pytest from core import LightController, ReleaseHoldController from tests.utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxStepper from core.stepper.circular_stepper import CircularStepper from core import light_features... | null | null | null |
xaviml/controllerx | train | 16 | 254bb44ff4b4cac4b8c36c4ac5718ee2ffa0575e | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 404 | 4 | assert | test_click | import pytest
from core import LightController, ReleaseHoldController
from tests.utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular_stepper import CircularStepper
from core import light_features
@pytest.fixture... | expected_calls | added | 4dd8bac00e9c01120e8b37318c4d74b6143a0e685209d62e79d6a740d8a6a6de | assert|test_click|import pytest from core import LightController, ReleaseHoldController from tests.utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxStepper from core.stepper.circular_stepper import CircularStepper from core import light_features ... | null | null | null |
xaviml/controllerx | train | 17 | 734791966d752744d92affb8425ce5403465a3bc | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 241 | 4 | assert | test_get_actions_mapping_throwing_error | from collections import defaultdict
import appdaemon.plugins.hass.hassapi as hass
import pytest
from core import integration as integration_module
from core.controller import Controller, action
from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock
@pytest.fixture
def sut(fake_cont... | "This controller does not support integration-test." | added | b22b5b2558037e86dcb079026d6bd50cc9df42f91767941ccc048a4895fd72a9 | assert|test_get_actions_mapping_throwing_error|from collections import defaultdict import appdaemon.plugins.hass.hassapi as hass import pytest from core import integration as integration_module from core.controller import Controller, action from tests.utils import IntegrationMock, fake_async_function, fake_controller, ... | null | null | null |
xaviml/controllerx | train | 17 | 734791966d752744d92affb8425ce5403465a3bc | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 273 | 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 Controller, action
from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock
@pytest.fixture
def sut(fake_cont... | expected_calls | added | 213e2730f2f47968763908b0407d29cbb0e2f79dbbc3ff2fac6e79b3ddc7266c | 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 Controller, action from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock @pytest.fix... | null | null | null |
xaviml/controllerx | train | 17 | 734791966d752744d92affb8425ce5403465a3bc | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 317 | 8 | assert_* | test_call_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 Controller, action
from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock
@pytest.fixture
def sut(fake_cont... | {"action_key": action_key}) | added | 6140b31ac7286b324344136181a8a1839e027e34928faa7dee401797150f28ca | assert_*|test_call_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 Controller, action from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock @pytest.fix... | null | null | null |
xaviml/controllerx | train | 17 | 734791966d752744d92affb8425ce5403465a3bc | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 337 | 8 | assert | test_get_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 Controller, action
from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock
@pytest.fixture
def sut(fake_cont... | "The action value from the action mapping should be a list or a function" | added | b8809505c1ecc4969e67554a8ab5882ecd43b782ee44a8db899698fb2cf82d81 | assert|test_get_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 Controller, action from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock @pytest.fixtur... | null | null | null |
xaviml/controllerx | train | 18 | 9275cf59dec597d1987c4ada3a59f37bb4e38419 | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 312 | 8 | assert_* | test_call_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 Controller, action
from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock
@pytest.fixture
def sut(fake_cont... | handle) | modified | 441dda8eb981caed795e41f4540e5e4f5bb4cdda087023dd35524d1dd088d8bd | assert_*|test_call_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 Controller, action from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock @pytest.fix... | handle) | 311 | 8 |
xaviml/controllerx | train | 18 | 9275cf59dec597d1987c4ada3a59f37bb4e38419 | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 318 | 8 | assert_* | test_call_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 Controller, action
from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock
@pytest.fixture
def sut(fake_cont... | {"action_key": action_key}) | modified | 0d0a682f413ca04f6c22b20366a77a2bb0bac15220c8580ed8e4f662c05d2eae | assert_*|test_call_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 Controller, action from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock @pytest.fix... | {"action_key": action_key}) | 317 | 8 |
xaviml/controllerx | train | 18 | 9275cf59dec597d1987c4ada3a59f37bb4e38419 | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 336 | 13 | pytest.raises | test_get_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 Controller, action
from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock
@pytest.fixture
def sut(fake_cont... | ValueError) | modified | 77eb1cac766895f48b9f60be91dcd5ec3bb50c998fa1f3fd81e7b0fae31bd732 | pytest.raises|test_get_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 Controller, action from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock @pytest... | ValueError) | 335 | 13 |
xaviml/controllerx | train | 18 | 9275cf59dec597d1987c4ada3a59f37bb4e38419 | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 344 | 8 | assert | test_get_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 Controller, action
from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock
@pytest.fixture
def sut(fake_cont... | expected | modified | 8e78084692be46aec24321c919a66988d350927da3c2b0a5904abc5b4912d09d | assert|test_get_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 Controller, action from tests.utils import IntegrationMock, fake_async_function, fake_controller, hass_mock @pytest.fixtur... | expected | 343 | 8 |
xaviml/controllerx | train | 19 | be5d91543f763cd3fbda7385b607bc2933b67820 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 344 | 4 | assert_* | test_sync | import pytest
from core import LightController, ReleaseHoldController
from tests.utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular_stepper import CircularStepper
from core import light_features
@pytest.fixture... | "light/turn_on") | modified | db0fd49b8ae3fb164243750cd540dd84e765f83f98715cd75a91800f332d4f83 | assert_*|test_sync|import pytest from core import LightController, ReleaseHoldController from tests.utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxStepper from core.stepper.circular_stepper import CircularStepper from core import light_features... | "light/turn_on") | 344 | 4 |
xaviml/controllerx | train | 19 | be5d91543f763cd3fbda7385b607bc2933b67820 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 393 | 4 | assert | test_click | import pytest
from core import LightController, ReleaseHoldController
from tests.utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular_stepper import CircularStepper
from core import light_features
@pytest.fixture... | expected_calls | added | 40992c3742ef5233040ca1f3a5e0f5cfef5c4072331f7e082bcdae6ec956286a | assert|test_click|import pytest from core import LightController, ReleaseHoldController from tests.utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxStepper from core.stepper.circular_stepper import CircularStepper from core import light_features ... | null | null | null |
xaviml/controllerx | train | 19 | be5d91543f763cd3fbda7385b607bc2933b67820 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 460 | 8 | assert_* | test_hold | import pytest
from core import LightController, ReleaseHoldController
from tests.utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular_stepper import CircularStepper
from core import light_features
@pytest.fixture... | expected_direction) | added | edbb841a0855a4218a30bebfc7c9a284ace2935bca9baeb074009c3b3d5843fe | assert_*|test_hold|import pytest from core import LightController, ReleaseHoldController from tests.utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxStepper from core.stepper.circular_stepper import CircularStepper from core import light_features... | null | null | null |
xaviml/controllerx | train | 19 | be5d91543f763cd3fbda7385b607bc2933b67820 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 472 | 4 | assert_* | test_hold_loop | import pytest
from core import LightController, ReleaseHoldController
from tests.utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular_stepper import CircularStepper
from core import light_features
@pytest.fixture... | "hold") | added | 1fa033977506cbc6e0fa90f0ccb5fb266e894fa875ce2103838611fcd73a5c21 | assert_*|test_hold_loop|import pytest from core import LightController, ReleaseHoldController from tests.utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxStepper from core.stepper.circular_stepper import CircularStepper from core import light_fea... | null | null | null |
xaviml/controllerx | train | 20 | 281bf3eb91f922e78619214a55932adf76e0140a | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 152 | 12 | assert_* | test_initialize | 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 (
hass_mock,
fake_controller,
IntegrationMock,
fake_async_function,
)
@pytest.fixture
def... | controller_id) | added | a4688b6efbf87a68526c7a5bc0fec1188a22a5bc437dad0d408430158c9891d5 | assert_*|test_initialize|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 ( hass_mock, fake_controller, IntegrationMock, fake_async_function, ) @pytest.fixtur... | null | null | null |
xaviml/controllerx | train | 20 | 281bf3eb91f922e78619214a55932adf76e0140a | train | tests/core/custom_controller_test.py | train | xaviml/controllerx:tests/core/custom_controller_test.py | 149 | 4 | assert | test_call_service_controller | import pytest
from core import (
CallServiceController,
CustomLightController,
CustomMediaPlayerController,
Controller,
)
from tests.test_utils import hass_mock, fake_async_function
@pytest.mark.parametrize(
"custom_cls, mapping, action_input, mock_function, expected_calls",
[
(Custom... | len(expected_calls) | modified | a60d65c822cf8023f16bb3129a137af4ebeef1ffe4e9e40690b7c80a7cf8699f | assert|test_call_service_controller|import pytest from core import ( CallServiceController, CustomLightController, CustomMediaPlayerController, Controller, ) from tests.test_utils import hass_mock, fake_async_function @pytest.mark.parametrize( "custom_cls, mapping, action_input, mock_function, expected_calls", [ (Custo... | len(expected_calls) | 149 | 4 |
xaviml/controllerx | train | 20 | 281bf3eb91f922e78619214a55932adf76e0140a | train | tests/core/integration/integration_test.py | train | xaviml/controllerx:tests/core/integration/integration_test.py | 9 | 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, {})
integrations.sort(key=lambda integration: integration.name)
inteagration_names = [i... | sorted(["z2m", "zha", "deconz", "state"]) | added | 90123f2fbb7efc04086f484309fad17475bdaf475aefa466b3bdc9cc50461c45 | 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, {}) integrations.sort(key=lambda integration: integration.name) inteagra... | null | null | null |
xaviml/controllerx | train | 20 | 281bf3eb91f922e78619214a55932adf76e0140a | train | tests/core/integration/zha_test.py | train | xaviml/controllerx:tests/core/integration/zha_test.py | 42 | 4 | assert_* | test_get_integrations | import pytest
from tests.test_utils import hass_mock, fake_controller
from core.integration.zha import ZHAIntegration
@pytest.mark.parametrize(
"command, args, expected_called_with",
[
("test_command", [0, 1, 2], "test_command_0_1_2"),
("testcommand", [0, 2], "testcommand_0_2"),
("tes... | expected_called_with) | modified | 6cd7e8e85d00e479234ffa93875c1a74b1cb07848ec5a45bcb83e5f7464d39fa | assert_*|test_get_integrations|import pytest from tests.test_utils import hass_mock, fake_controller from core.integration.zha import ZHAIntegration @pytest.mark.parametrize( "command, args, expected_called_with", [ ("test_command", [0, 1, 2], "test_command_0_1_2"), ("testcommand", [0, 2], "testcommand_0_2"), ("testcom... | expected_called_with) | 43 | 4 |
xaviml/controllerx | train | 20 | 281bf3eb91f922e78619214a55932adf76e0140a | train | tests/core/release_hold_controller_test.py | train | xaviml/controllerx:tests/core/release_hold_controller_test.py | 41 | 4 | assert | test_release | import pytest
from core import integration as integration_module
from core.controller import Controller, ReleaseHoldController
from tests.test_utils import hass_mock, fake_async_function
class FakeReleaseHoldController(ReleaseHoldController):
def hold_loop(self):
pass
@pytest.fixture
def sut(hass_mock... | False | modified | 5b3cd75a69b9d7700fe1e831c3884ed8896ef667fdefde95bf8721a9f7b5bf62 | assert|test_release|import pytest from core import integration as integration_module from core.controller import Controller, ReleaseHoldController from tests.test_utils import hass_mock, fake_async_function class FakeReleaseHoldController(ReleaseHoldController): def hold_loop(self): pass @pytest.fixture def sut(hass_mo... | False | 41 | 4 |
xaviml/controllerx | train | 20 | 281bf3eb91f922e78619214a55932adf76e0140a | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 393 | 4 | assert | test_click | import pytest
from core import LightController, ReleaseHoldController
from tests.test_utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular_stepper import CircularStepper
from core import light_features
@pytest.fi... | expected_calls | modified | 4cc401002c55efc4b0c2462cfb590e25e8159153d8bd0750ece363149bb4e46d | assert|test_click|import pytest from core import LightController, ReleaseHoldController from tests.test_utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxStepper from core.stepper.circular_stepper import CircularStepper from core import light_feat... | expected_calls | 393 | 4 |
xaviml/controllerx | train | 20 | 281bf3eb91f922e78619214a55932adf76e0140a | train | tests/core/type/media_player_controller_test.py | train | xaviml/controllerx:tests/core/type/media_player_controller_test.py | 50 | 4 | assert_* | test_next_track | import pytest
from core import MediaPlayerController, ReleaseHoldController
from core.stepper import Stepper
from tests.test_utils import hass_mock
@pytest.fixture
@pytest.mark.asyncio
async def sut(hass_mock, mocker):
c = MediaPlayerController()
c.args = {}
c.delay = 0
c.media_player = "test"
c.... | "media_player/media_next_track") | added | 4dbf5d375f6559e64d4dd32ed32fc0e5ea1e429a56e454d36bdddf01b560f29f | assert_*|test_next_track|import pytest from core import MediaPlayerController, ReleaseHoldController from core.stepper import Stepper from tests.test_utils import hass_mock @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = MediaPlayerController() c.args = {} c.delay = 0 c.media_player = "test" ... | null | null | null |
xaviml/controllerx | train | 20 | 281bf3eb91f922e78619214a55932adf76e0140a | train | tests/core/type_controller_test.py | train | xaviml/controllerx:tests/core/type_controller_test.py | 84 | 8 | assert_* | test_get_entity_state | import pytest
from core.controller import TypeController
from tests.test_utils import hass_mock
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}' ... | "entity.test") | modified | 5a4fe16f006d77fd78b559dcabf9b65e1fa58c61bce2edf7ca2fa0324899eb2a | assert_*|test_get_entity_state|import pytest from core.controller import TypeController from tests.test_utils import hass_mock 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}' ... | "entity.test") | 85 | 8 |
xaviml/controllerx | train | 21 | bbf0cef2bbbf811e685559cd7b894234a5d619bb | train | tests/core/type/switch_controller_test.py | train | xaviml/controllerx:tests/core/type/switch_controller_test.py | 21 | 4 | assert | test_initialize | import pytest
from core.controller import TypeController
from tests.utils import hass_mock
from core.type.switch_controller import SwitchController
@pytest.fixture
@pytest.mark.asyncio
async def sut(hass_mock, mocker):
c = SwitchController()
mocker.patch.object(TypeController, "initialize")
c.args = {"sw... | "switch.test" | added | 4c300f69879e16cf7eb82ad8fde0f48014a03e4fc5b9773fc06dda6ea390e32b | assert|test_initialize|import pytest from core.controller import TypeController from tests.utils import hass_mock from core.type.switch_controller import SwitchController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") c.arg... | null | null | null |
xaviml/controllerx | train | 21 | bbf0cef2bbbf811e685559cd7b894234a5d619bb | train | tests/core/type/switch_controller_test.py | train | xaviml/controllerx:tests/core/type/switch_controller_test.py | 28 | 4 | assert_* | test_turn_on | import pytest
from core.controller import TypeController
from tests.utils import hass_mock
from core.type.switch_controller import SwitchController
@pytest.fixture
@pytest.mark.asyncio
async def sut(hass_mock, mocker):
c = SwitchController()
mocker.patch.object(TypeController, "initialize")
c.args = {"sw... | "switch/turn_on") | added | 0861cfac462e9d8c94714e0ad963ad681372e1f4ba0a0eec862ba087f805b8f7 | assert_*|test_turn_on|import pytest from core.controller import TypeController from tests.utils import hass_mock from core.type.switch_controller import SwitchController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") c.args... | null | null | null |
xaviml/controllerx | train | 21 | bbf0cef2bbbf811e685559cd7b894234a5d619bb | train | tests/core/type/switch_controller_test.py | train | xaviml/controllerx:tests/core/type/switch_controller_test.py | 35 | 4 | assert_* | test_turn_off | import pytest
from core.controller import TypeController
from tests.utils import hass_mock
from core.type.switch_controller import SwitchController
@pytest.fixture
@pytest.mark.asyncio
async def sut(hass_mock, mocker):
c = SwitchController()
mocker.patch.object(TypeController, "initialize")
c.args = {"sw... | "switch/turn_off") | added | 6bc88ed4a4129bb084130af52adc0452c2c3236939bb301a09d2fdfa21e8a3b1 | assert_*|test_turn_off|import pytest from core.controller import TypeController from tests.utils import hass_mock from core.type.switch_controller import SwitchController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") c.arg... | null | null | null |
xaviml/controllerx | train | 21 | bbf0cef2bbbf811e685559cd7b894234a5d619bb | train | tests/core/type/switch_controller_test.py | train | xaviml/controllerx:tests/core/type/switch_controller_test.py | 44 | 4 | assert_* | test_toggle | import pytest
from core.controller import TypeController
from tests.utils import hass_mock
from core.type.switch_controller import SwitchController
@pytest.fixture
@pytest.mark.asyncio
async def sut(hass_mock, mocker):
c = SwitchController()
mocker.patch.object(TypeController, "initialize")
c.args = {"sw... | "switch/toggle") | added | 14300c9bd50fc08bb20cba41abfee66e3ca79ba7f3429a25ee68493f0ee40802 | assert_*|test_toggle|import pytest from core.controller import TypeController from tests.utils import hass_mock from core.type.switch_controller import SwitchController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") c.args ... | null | null | null |
xaviml/controllerx | train | 22 | 2f4e6d82193c877d82eb7dd973d55faca2bcd2f4 | train | tests/core/type/switch_controller_test.py | train | xaviml/controllerx:tests/core/type/switch_controller_test.py | 21 | 4 | assert | test_initialize | import pytest
from core.controller import TypeController
from tests.test_utils import hass_mock
from core.type.switch_controller import SwitchController
@pytest.fixture
@pytest.mark.asyncio
async def sut(hass_mock, mocker):
c = SwitchController()
mocker.patch.object(TypeController, "initialize")
c.args =... | "switch.test" | modified | 79a670394f33434c13c652d5354b6ad3da71c6560b612959b1bc192035780e48 | assert|test_initialize|import pytest from core.controller import TypeController from tests.test_utils import hass_mock from core.type.switch_controller import SwitchController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") ... | "switch.test" | 21 | 4 |
xaviml/controllerx | train | 22 | 2f4e6d82193c877d82eb7dd973d55faca2bcd2f4 | train | tests/core/type/switch_controller_test.py | train | xaviml/controllerx:tests/core/type/switch_controller_test.py | 28 | 4 | assert_* | test_turn_on | import pytest
from core.controller import TypeController
from tests.test_utils import hass_mock
from core.type.switch_controller import SwitchController
@pytest.fixture
@pytest.mark.asyncio
async def sut(hass_mock, mocker):
c = SwitchController()
mocker.patch.object(TypeController, "initialize")
c.args =... | "switch/turn_on") | modified | 41e8ed9e16a5d3cc2808516e93fb560f7ddeea7d691d40eddaa6dc07a3ff01b5 | assert_*|test_turn_on|import pytest from core.controller import TypeController from tests.test_utils import hass_mock from core.type.switch_controller import SwitchController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") c... | "switch/turn_on") | 28 | 4 |
xaviml/controllerx | train | 22 | 2f4e6d82193c877d82eb7dd973d55faca2bcd2f4 | train | tests/core/type/switch_controller_test.py | train | xaviml/controllerx:tests/core/type/switch_controller_test.py | 35 | 4 | assert_* | test_turn_off | import pytest
from core.controller import TypeController
from tests.test_utils import hass_mock
from core.type.switch_controller import SwitchController
@pytest.fixture
@pytest.mark.asyncio
async def sut(hass_mock, mocker):
c = SwitchController()
mocker.patch.object(TypeController, "initialize")
c.args =... | "switch/turn_off") | modified | cc98460a8f561876dec61432d0ff127c9aa67cc308704b55e0defab944e36324 | assert_*|test_turn_off|import pytest from core.controller import TypeController from tests.test_utils import hass_mock from core.type.switch_controller import SwitchController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") ... | "switch/turn_off") | 35 | 4 |
xaviml/controllerx | train | 22 | 2f4e6d82193c877d82eb7dd973d55faca2bcd2f4 | train | tests/core/type/switch_controller_test.py | train | xaviml/controllerx:tests/core/type/switch_controller_test.py | 44 | 4 | assert_* | test_toggle | import pytest
from core.controller import TypeController
from tests.test_utils import hass_mock
from core.type.switch_controller import SwitchController
@pytest.fixture
@pytest.mark.asyncio
async def sut(hass_mock, mocker):
c = SwitchController()
mocker.patch.object(TypeController, "initialize")
c.args =... | "switch/toggle") | modified | abce6bcea414d08553ca80567fedb4b0fa51705eba98bbbd905c675c43abc715 | assert_*|test_toggle|import pytest from core.controller import TypeController from tests.test_utils import hass_mock from core.type.switch_controller import SwitchController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") c.... | "switch/toggle") | 44 | 4 |
xaviml/controllerx | train | 23 | bef11f348f77fb211340858c00a3dfdfc48859c1 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 113 | 4 | assert | test_get_value_attribute | from core.light_features import FEATURES, SUPPORT_COLOR, SUPPORT_COLOR_TEMP
import pytest
from core import LightController, ReleaseHoldController
from tests.test_utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular... | expected_output | added | 74b6686928c7de9754bfe28e27cdfef49ac513f2165e696529818d4ffbd42185 | assert|test_get_value_attribute|from core.light_features import FEATURES, SUPPORT_COLOR, SUPPORT_COLOR_TEMP import pytest from core import LightController, ReleaseHoldController from tests.test_utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxSte... | null | null | null |
xaviml/controllerx | train | 23 | bef11f348f77fb211340858c00a3dfdfc48859c1 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 233 | 4 | assert_* | test_on | from core.light_features import FEATURES, SUPPORT_COLOR, SUPPORT_COLOR_TEMP
import pytest
from core import LightController, ReleaseHoldController
from tests.test_utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular... | "light/turn_on") | added | 413cb15ba03c24815d2bc1f48146c63bf82faecf32e762815e0b206e643078d0 | assert_*|test_on|from core.light_features import FEATURES, SUPPORT_COLOR, SUPPORT_COLOR_TEMP import pytest from core import LightController, ReleaseHoldController from tests.test_utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxStepper from core.... | null | null | null |
xaviml/controllerx | train | 23 | bef11f348f77fb211340858c00a3dfdfc48859c1 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 243 | 4 | assert_* | test_off | from core.light_features import FEATURES, SUPPORT_COLOR, SUPPORT_COLOR_TEMP
import pytest
from core import LightController, ReleaseHoldController
from tests.test_utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular... | "light/turn_off") | added | 19ff331cde65357c518d63ce677ac3291791adde7f6c25d4a88dbe39b703bfb2 | assert_*|test_off|from core.light_features import FEATURES, SUPPORT_COLOR, SUPPORT_COLOR_TEMP import pytest from core import LightController, ReleaseHoldController from tests.test_utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxStepper from core... | null | null | null |
xaviml/controllerx | train | 23 | bef11f348f77fb211340858c00a3dfdfc48859c1 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 295 | 4 | assert | test_on_full | from core.light_features import FEATURES, SUPPORT_COLOR, SUPPORT_COLOR_TEMP
import pytest
from core import LightController, ReleaseHoldController
from tests.test_utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular... | Stepper.TOGGLE_UP | added | 3d15fcc2f868454d085cd797cd9243693e4f4cb05648c6364f29940eb2d9344c | assert|test_on_full|from core.light_features import FEATURES, SUPPORT_COLOR, SUPPORT_COLOR_TEMP import pytest from core import LightController, ReleaseHoldController from tests.test_utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxStepper from co... | null | null | null |
xaviml/controllerx | train | 24 | 5379fb953e7ef4953cd4216539dcd26e3d7673b0 | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 180 | 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 | a05db8ef04fe6e2b1732b04d7c98360acd6d8670b22ce2f7f9d01b7aca839266 | 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) | 179 | 13 |
xaviml/controllerx | train | 24 | 5379fb953e7ef4953cd4216539dcd26e3d7673b0 | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 227 | 4 | assert | test_check_ad_version_throwing_error | 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... | "Please upgrade to AppDaemon 4.x" | modified | 35b6a66f43a6e0d91f1ae971a86e875d053fc96d90514118411e12bdf4edcbc5 | assert|test_check_ad_version_throwing_error|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_moc... | "Please upgrade to AppDaemon 4.x" | 225 | 4 |
xaviml/controllerx | train | 24 | 5379fb953e7ef4953cd4216539dcd26e3d7673b0 | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 248 | 4 | assert | test_get_actions_mapping_throwing_error | 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... | "This controller does not support integration-test." | modified | 558232ae38d0408609612114791cfe519ce14266180dde4a02b35ab9f0c0501d | assert|test_get_actions_mapping_throwing_error|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_... | "This controller does not support integration-test." | 246 | 4 |
xaviml/controllerx | train | 24 | 5379fb953e7ef4953cd4216539dcd26e3d7673b0 | train | tests/core/controller_test.py | test | xaviml/controllerx:tests/core/controller_test.py | 343 | 13 | pytest.raises | test_get_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... | ValueError) | modified | 547c44be6781fddc361c5ec429d606c60193f0dbdb09ef3ad15abf362d75885a | pytest.raises|test_get_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.f... | ValueError) | 341 | 13 |
xaviml/controllerx | train | 24 | 5379fb953e7ef4953cd4216539dcd26e3d7673b0 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 110 | 8 | assert | test_get_attribute | from core.light_features import FEATURES, SUPPORT_COLOR, SUPPORT_COLOR_TEMP
import pytest
from core import LightController, ReleaseHoldController
from tests.test_utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular... | attribute_expected | added | 472286f186bc4b143b6ee62a6f4dcdeda83efe811c759eae3ec502449f485ab1 | assert|test_get_attribute|from core.light_features import FEATURES, SUPPORT_COLOR, SUPPORT_COLOR_TEMP import pytest from core import LightController, ReleaseHoldController from tests.test_utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxStepper f... | null | null | null |
xaviml/controllerx | train | 24 | 5379fb953e7ef4953cd4216539dcd26e3d7673b0 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 135 | 13 | pytest.raises | test_get_value_attribute | from core.light_features import FEATURES, SUPPORT_COLOR, SUPPORT_COLOR_TEMP
import pytest
from core import LightController, ReleaseHoldController
from tests.test_utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular... | ValueError) | added | 839e769f6b8175dfc1d40be036d90fecbcc5ddf1f30db90bf07643e962ce3c52 | pytest.raises|test_get_value_attribute|from core.light_features import FEATURES, SUPPORT_COLOR, SUPPORT_COLOR_TEMP import pytest from core import LightController, ReleaseHoldController from tests.test_utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import Mi... | null | null | null |
xaviml/controllerx | train | 24 | 5379fb953e7ef4953cd4216539dcd26e3d7673b0 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 420 | 4 | assert | test_click | from core.light_features import FEATURES, SUPPORT_COLOR, SUPPORT_COLOR_TEMP
import pytest
from core import LightController, ReleaseHoldController
from tests.test_utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular... | expected_calls | added | f570798862ec7f1e526713cf95e58bac9d7b464359a19070e56febbf02d924a0 | assert|test_click|from core.light_features import FEATURES, SUPPORT_COLOR, SUPPORT_COLOR_TEMP import pytest from core import LightController, ReleaseHoldController from tests.test_utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxStepper from core... | null | null | null |
xaviml/controllerx | train | 24 | 5379fb953e7ef4953cd4216539dcd26e3d7673b0 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 485 | 4 | assert | test_hold | from core.light_features import FEATURES, SUPPORT_COLOR, SUPPORT_COLOR_TEMP
import pytest
from core import LightController, ReleaseHoldController
from tests.test_utils import hass_mock, fake_async_function
from core.stepper import Stepper
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper.circular... | expected_calls | added | e06d47f2f9864a92c334b75cf47c6625ff7613b0c1825398436e86a6405576fc | assert|test_hold|from core.light_features import FEATURES, SUPPORT_COLOR, SUPPORT_COLOR_TEMP import pytest from core import LightController, ReleaseHoldController from tests.test_utils import hass_mock, fake_async_function from core.stepper import Stepper from core.stepper.minmax_stepper import MinMaxStepper from core.... | null | null | null |
xaviml/controllerx | train | 25 | 362059a878ad446e641646c12b36ca2a012bacc4 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 103 | 13 | pytest.raises | test_get_attribute | import pytest
from core import LightController, ReleaseHoldController, light_features
from core.light_features import SUPPORT_COLOR, SUPPORT_COLOR_TEMP
from core.stepper import Stepper
from core.stepper.circular_stepper import CircularStepper
from core.stepper.minmax_stepper import MinMaxStepper
from tests.test_utils ... | ValueError) | modified | bec6af5cc15305049b20eddfe89cb241edbb98a1d3ecf5ef95cc2a106c9ef0f7 | pytest.raises|test_get_attribute|import pytest from core import LightController, ReleaseHoldController, light_features from core.light_features import SUPPORT_COLOR, SUPPORT_COLOR_TEMP from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.minmax_stepper import MinM... | ValueError) | 104 | 13 |
xaviml/controllerx | train | 25 | 362059a878ad446e641646c12b36ca2a012bacc4 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 252 | 4 | assert_* | test_call_light_service | import pytest
from core import LightController, ReleaseHoldController, light_features
from core.light_features import SUPPORT_COLOR, SUPPORT_COLOR_TEMP
from core.stepper import Stepper
from core.stepper.circular_stepper import CircularStepper
from core.stepper.minmax_stepper import MinMaxStepper
from tests.test_utils ... | "test_service") | modified | b945d4b50ab3d9afc6320c3d642b22845f34002f489b8b321c96e219809a2b2f | assert_*|test_call_light_service|import pytest from core import LightController, ReleaseHoldController, light_features from core.light_features import SUPPORT_COLOR, SUPPORT_COLOR_TEMP from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.minmax_stepper import MinM... | "test_service") | 249 | 4 |
xaviml/controllerx | train | 25 | 362059a878ad446e641646c12b36ca2a012bacc4 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 274 | 4 | assert_* | test_off | import pytest
from core import LightController, ReleaseHoldController, light_features
from core.light_features import SUPPORT_COLOR, SUPPORT_COLOR_TEMP
from core.stepper import Stepper
from core.stepper.circular_stepper import CircularStepper
from core.stepper.minmax_stepper import MinMaxStepper
from tests.test_utils ... | "light/turn_off") | modified | 3af929954e3f5eefc8d6c678620e40c9a8ae976b1611f4c7af30876cadf3ec46 | assert_*|test_off|import pytest from core import LightController, ReleaseHoldController, light_features from core.light_features import SUPPORT_COLOR, SUPPORT_COLOR_TEMP from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.minmax_stepper import MinMaxStepper from ... | "light/turn_off") | 271 | 4 |
xaviml/controllerx | train | 25 | 362059a878ad446e641646c12b36ca2a012bacc4 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 493 | 4 | assert | test_hold | import pytest
from core import LightController, ReleaseHoldController, light_features
from core.light_features import SUPPORT_COLOR, SUPPORT_COLOR_TEMP
from core.stepper import Stepper
from core.stepper.circular_stepper import CircularStepper
from core.stepper.minmax_stepper import MinMaxStepper
from tests.test_utils ... | expected_calls | added | bc986bc0508d2f3f378b12a96bfd717208da487198724dbea790026071ec6ae9 | assert|test_hold|import pytest from core import LightController, ReleaseHoldController, light_features from core.light_features import SUPPORT_COLOR, SUPPORT_COLOR_TEMP from core.stepper import Stepper from core.stepper.circular_stepper import CircularStepper from core.stepper.minmax_stepper import MinMaxStepper from t... | null | null | null |
xaviml/controllerx | train | 25 | 362059a878ad446e641646c12b36ca2a012bacc4 | train | tests/core/type/switch_controller_test.py | train | xaviml/controllerx:tests/core/type/switch_controller_test.py | 21 | 4 | assert | test_initialize | import pytest
from core.controller import TypeController
from tests.test_utils import hass_mock
from core import SwitchController
@pytest.fixture
@pytest.mark.asyncio
async def sut(hass_mock, mocker):
c = SwitchController()
mocker.patch.object(TypeController, "initialize")
c.args = {"switch": "switch.tes... | "switch.test" | modified | 347d253e52eb75be2f3c16dc5ff0e2b9a8a13bb5f6cdd36542464a9a446986e5 | assert|test_initialize|import pytest from core.controller import TypeController from tests.test_utils import hass_mock from core import SwitchController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") c.args = {"switch": "sw... | "switch.test" | 21 | 4 |
xaviml/controllerx | train | 25 | 362059a878ad446e641646c12b36ca2a012bacc4 | train | tests/core/type/switch_controller_test.py | train | xaviml/controllerx:tests/core/type/switch_controller_test.py | 28 | 4 | assert_* | test_turn_on | import pytest
from core.controller import TypeController
from tests.test_utils import hass_mock
from core import SwitchController
@pytest.fixture
@pytest.mark.asyncio
async def sut(hass_mock, mocker):
c = SwitchController()
mocker.patch.object(TypeController, "initialize")
c.args = {"switch": "switch.tes... | "switch/turn_on") | modified | ea89e542c1caa3c1092729af180687d97fba28846ffc5821f4e4da144e0ca6d1 | assert_*|test_turn_on|import pytest from core.controller import TypeController from tests.test_utils import hass_mock from core import SwitchController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") c.args = {"switch": "swi... | "switch/turn_on") | 28 | 4 |
xaviml/controllerx | train | 25 | 362059a878ad446e641646c12b36ca2a012bacc4 | train | tests/core/type/switch_controller_test.py | train | xaviml/controllerx:tests/core/type/switch_controller_test.py | 35 | 4 | assert_* | test_turn_off | import pytest
from core.controller import TypeController
from tests.test_utils import hass_mock
from core import SwitchController
@pytest.fixture
@pytest.mark.asyncio
async def sut(hass_mock, mocker):
c = SwitchController()
mocker.patch.object(TypeController, "initialize")
c.args = {"switch": "switch.tes... | "switch/turn_off") | modified | 3bfddad73de228082c8c3490266ec4c1727a10d61a87d23a6da5f7de13139453 | assert_*|test_turn_off|import pytest from core.controller import TypeController from tests.test_utils import hass_mock from core import SwitchController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") c.args = {"switch": "sw... | "switch/turn_off") | 35 | 4 |
xaviml/controllerx | train | 25 | 362059a878ad446e641646c12b36ca2a012bacc4 | train | tests/core/type/switch_controller_test.py | train | xaviml/controllerx:tests/core/type/switch_controller_test.py | 44 | 4 | assert_* | test_toggle | import pytest
from core.controller import TypeController
from tests.test_utils import hass_mock
from core import SwitchController
@pytest.fixture
@pytest.mark.asyncio
async def sut(hass_mock, mocker):
c = SwitchController()
mocker.patch.object(TypeController, "initialize")
c.args = {"switch": "switch.tes... | "switch/toggle") | modified | 30ba98b65583fb4e347c470f48b37d60aed8b29a44cc20f1ab758d3e6dfe38f3 | assert_*|test_toggle|import pytest from core.controller import TypeController from tests.test_utils import hass_mock from core import SwitchController @pytest.fixture @pytest.mark.asyncio async def sut(hass_mock, mocker): c = SwitchController() mocker.patch.object(TypeController, "initialize") c.args = {"switch": "swit... | "switch/toggle") | 44 | 4 |
xaviml/controllerx | train | 26 | ab974c3c7b8afa26febe0f2da1e4c7bb54720cdc | train | tests/core/custom_controller_test.py | train | xaviml/controllerx:tests/core/custom_controller_test.py | 152 | 4 | assert | test_call_service_controller | from core.custom_controller import CustomSwitchController
import pytest
from core import (
CallServiceController,
CustomLightController,
CustomMediaPlayerController,
Controller,
)
from tests.test_utils import hass_mock, fake_async_function
@pytest.mark.parametrize(
"custom_cls, mapping, action_in... | len(expected_calls) | modified | 4babc46cced4f88c90c0c93f7ea762931d8f18e7d7460f834940a30851de9287 | assert|test_call_service_controller|from core.custom_controller import CustomSwitchController import pytest from core import ( CallServiceController, CustomLightController, CustomMediaPlayerController, Controller, ) from tests.test_utils import hass_mock, fake_async_function @pytest.mark.parametrize( "custom_cls, mappi... | len(expected_calls) | 149 | 4 |
xaviml/controllerx | train | 26 | ab974c3c7b8afa26febe0f2da1e4c7bb54720cdc | train | tests/core/custom_controller_test.py | train | xaviml/controllerx:tests/core/custom_controller_test.py | 154 | 8 | assert_* | test_call_service_controller | from core.custom_controller import CustomSwitchController
import pytest
from core import (
CallServiceController,
CustomLightController,
CustomMediaPlayerController,
Controller,
)
from tests.test_utils import hass_mock, fake_async_function
@pytest.mark.parametrize(
"custom_cls, mapping, action_in... | expected_service) | modified | f371f46ba8614ca79de83513fd1a89aad9a8910033a70eff1aee7d94bff0c4ee | assert_*|test_call_service_controller|from core.custom_controller import CustomSwitchController import pytest from core import ( CallServiceController, CustomLightController, CustomMediaPlayerController, Controller, ) from tests.test_utils import hass_mock, fake_async_function @pytest.mark.parametrize( "custom_cls, map... | expected_service) | 151 | 8 |
xaviml/controllerx | train | 27 | 6c76a108e34e1ae6bba2e09cf3505143a5f65d67 | train | tests/core/custom_controller_test.py | train | xaviml/controllerx:tests/core/custom_controller_test.py | 154 | 4 | assert | test_call_service_controller | from core.custom_controller import CustomCoverController, CustomSwitchController
import pytest
from core import (
CallServiceController,
CustomLightController,
CustomMediaPlayerController,
Controller,
)
from tests.test_utils import hass_mock, fake_async_function
@pytest.mark.parametrize(
"custom_... | len(expected_calls) | modified | ac385337b0e3eb7bf34c82b34df32f266ea417c63641ffb4b1b962e350b2efbc | assert|test_call_service_controller|from core.custom_controller import CustomCoverController, CustomSwitchController import pytest from core import ( CallServiceController, CustomLightController, CustomMediaPlayerController, Controller, ) from tests.test_utils import hass_mock, fake_async_function @pytest.mark.parametr... | len(expected_calls) | 152 | 4 |
xaviml/controllerx | train | 27 | 6c76a108e34e1ae6bba2e09cf3505143a5f65d67 | train | tests/core/custom_controller_test.py | train | xaviml/controllerx:tests/core/custom_controller_test.py | 156 | 8 | assert_* | test_call_service_controller | from core.custom_controller import CustomCoverController, CustomSwitchController
import pytest
from core import (
CallServiceController,
CustomLightController,
CustomMediaPlayerController,
Controller,
)
from tests.test_utils import hass_mock, fake_async_function
@pytest.mark.parametrize(
"custom_... | expected_service) | modified | d21c96b963742e3d222d5d5bb21df33ed4aca5a7548e443fd1fac704f28929a3 | assert_*|test_call_service_controller|from core.custom_controller import CustomCoverController, CustomSwitchController import pytest from core import ( CallServiceController, CustomLightController, CustomMediaPlayerController, Controller, ) from tests.test_utils import hass_mock, fake_async_function @pytest.mark.parame... | expected_service) | 154 | 8 |
xaviml/controllerx | train | 27 | 6c76a108e34e1ae6bba2e09cf3505143a5f65d67 | train | tests/core/type/cover_controller_test.py | val | xaviml/controllerx:tests/core/type/cover_controller_test.py | 21 | 4 | assert | test_initialize | 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, mocker):
c = CoverController()
mocker.patch.object(TypeController, "initialize")
c.args = {"c... | "cover.test" | added | 6d0fd01a3ae6f62855e68d56f547dfe1663cc311d22785683147bd039098e2b7 | assert|test_initialize|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, mocker): c = CoverController() mocker.patch.object(TypeController, "initialize") c.ar... | null | null | null |
xaviml/controllerx | train | 27 | 6c76a108e34e1ae6bba2e09cf3505143a5f65d67 | train | tests/core/type/cover_controller_test.py | val | xaviml/controllerx:tests/core/type/cover_controller_test.py | 28 | 4 | assert_* | test_open | 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, mocker):
c = CoverController()
mocker.patch.object(TypeController, "initialize")
c.args = {"c... | "cover/open_cover") | added | 5d32ad9755ed13df54fadb28cb4bf0a6d4b8176b7a450b6e5ad1bc3a4c453b72 | assert_*|test_open|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, mocker): c = CoverController() mocker.patch.object(TypeController, "initialize") c.args =... | null | null | null |
xaviml/controllerx | train | 27 | 6c76a108e34e1ae6bba2e09cf3505143a5f65d67 | train | tests/core/type/cover_controller_test.py | val | xaviml/controllerx:tests/core/type/cover_controller_test.py | 46 | 4 | assert_* | test_stop | 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, mocker):
c = CoverController()
mocker.patch.object(TypeController, "initialize")
c.args = {"c... | "cover/stop_cover") | added | f6d7b6f156f4481f2749ff33e0ed84b213504cfd6bcd851f24d11c2cbe8bebb4 | assert_*|test_stop|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, mocker): c = CoverController() mocker.patch.object(TypeController, "initialize") c.args =... | null | null | null |
xaviml/controllerx | train | 27 | 6c76a108e34e1ae6bba2e09cf3505143a5f65d67 | train | tests/core/type/cover_controller_test.py | val | xaviml/controllerx:tests/core/type/cover_controller_test.py | 62 | 8 | assert_* | test_toggle | 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, mocker):
c = CoverController()
mocker.patch.object(TypeController, "initialize")
c.args = {"c... | "cover/stop_cover") | added | 4e71386593477fc61258425917ccffd22265bce170eb4514bcb757604c3d9b3a | assert_*|test_toggle|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, mocker): c = CoverController() mocker.patch.object(TypeController, "initialize") c.args... | null | null | null |
xaviml/controllerx | train | 28 | ff481a1066796c09cffdfa40eefb10c6d20846a4 | train | tests/core/feature_support/cover_support_test.py | train | xaviml/controllerx:tests/core/feature_support/cover_support_test.py | 33 | 4 | assert | test_init | from core.feature_support.cover import CoverSupport
import pytest
@pytest.mark.parametrize(
"number, expected_supported_features",
[
("1", {CoverSupport.OPEN,},),
(
"15",
{
CoverSupport.OPEN,
CoverSupport.CLOSE,
CoverSuppo... | expected_supported_features | added | 688cb65edcaf994c9624fe2f9632e876227e0092b462ff009fefde206933d814 | assert|test_init|from core.feature_support.cover import CoverSupport import pytest @pytest.mark.parametrize( "number, expected_supported_features", [ ("1", {CoverSupport.OPEN,},), ( "15", { CoverSupport.OPEN, CoverSupport.CLOSE, CoverSupport.SET_COVER_POSITION, CoverSupport.STOP, }, ), ( "149", { CoverSupport.SET_TILT_... | null | null | null |
xaviml/controllerx | train | 28 | ff481a1066796c09cffdfa40eefb10c6d20846a4 | train | tests/core/feature_support/feature_support_test.py | train | xaviml/controllerx:tests/core/feature_support/feature_support_test.py | 16 | 4 | assert | test_decode | 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... | expected_features | added | e2338c3f0d7f6b2a10a5faf544625f84e6e2f625a6bcc55db6e02968b0ecbb2b | assert|test_decode|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 | 28 | ff481a1066796c09cffdfa40eefb10c6d20846a4 | train | tests/core/feature_support/feature_support_test.py | train | xaviml/controllerx:tests/core/feature_support/feature_support_test.py | 77 | 4 | assert | test_not_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 | df9fc8e31a5b70b9764bf92d961709c97da200c556cc059b2d0b16e6ece61fe8 | assert|test_not_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, 6... | null | null | null |
xaviml/controllerx | train | 28 | ff481a1066796c09cffdfa40eefb10c6d20846a4 | train | tests/core/feature_support/light_support_test.py | train | xaviml/controllerx:tests/core/feature_support/light_support_test.py | 33 | 4 | assert | test_init | from core.feature_support.light import LightSupport
import pytest
@pytest.mark.parametrize(
"number, expected_supported_features",
[
("1", {LightSupport.BRIGHTNESS,},),
(
"57",
{
LightSupport.BRIGHTNESS,
LightSupport.FLASH,
... | expected_supported_features | added | 5c4558f70c88091abc64bf731039228a973dd0bc253643441fc9dbb8c0a53427 | assert|test_init|from core.feature_support.light import LightSupport import pytest @pytest.mark.parametrize( "number, expected_supported_features", [ ("1", {LightSupport.BRIGHTNESS,},), ( "57", { LightSupport.BRIGHTNESS, LightSupport.FLASH, LightSupport.COLOR, LightSupport.TRANSITION, }, ), ( "149", { LightSupport.BRIG... | null | null | null |
xaviml/controllerx | train | 28 | ff481a1066796c09cffdfa40eefb10c6d20846a4 | train | tests/core/type/cover_controller_test.py | val | xaviml/controllerx:tests/core/type/cover_controller_test.py | 54 | 8 | assert_* | test_open | 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) | added | a44e293bcf3a453f992ba359bc6c4e4c58d63ad0019d14cf2bc5f1507b2314f9 | assert_*|test_open|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(... | null | null | null |
xaviml/controllerx | train | 28 | ff481a1066796c09cffdfa40eefb10c6d20846a4 | train | tests/core/type/cover_controller_test.py | val | xaviml/controllerx:tests/core/type/cover_controller_test.py | 86 | 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) | added | 43baf02a03dbfeffeffe12a4d7cfb41d7d39b0cc7dfaf3dfd90852edd2b76275 | 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... | null | null | null |
xaviml/controllerx | train | 28 | ff481a1066796c09cffdfa40eefb10c6d20846a4 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 116 | 13 | pytest.raises | test_get_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) | added | 868b9ea832c2d2ca3df0d89f7f249df06e65a46b03687078f5f65bfa3a11757c | pytest.raises|test_get_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_s... | null | null | null |
xaviml/controllerx | train | 28 | ff481a1066796c09cffdfa40eefb10c6d20846a4 | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 360 | 4 | assert | test_on_min | 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... | Stepper.TOGGLE_DOWN | added | 32fbcdbea408d4ae2167fd26a2b9d8e120b4c4678deabc21a82e2578abc2b394 | assert|test_on_min|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 | 29 | 080579959c8bd36c7c2e637fde4dc29019df63a7 | train | tests/core/type/cover_controller_test.py | val | xaviml/controllerx:tests/core/type/cover_controller_test.py | 42 | 13 | pytest.raises | test_initialize | 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... | ValueError) | added | 74cddb5f60b630d0c31be0cf38cf662230f6df5d21633e4e7e20e5f627d6b315 | pytest.raises|test_initialize|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 asy... | null | null | null |
xaviml/controllerx | train | 29 | 080579959c8bd36c7c2e637fde4dc29019df63a7 | train | tests/core/type/cover_controller_test.py | val | xaviml/controllerx:tests/core/type/cover_controller_test.py | 74 | 8 | assert_* | test_open | 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) | added | 260102956b2509325683cdca31991ec2fdfc3a5ea096820c033d601f534c50e7 | assert_*|test_open|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(... | null | null | null |
xaviml/controllerx | train | 29 | 080579959c8bd36c7c2e637fde4dc29019df63a7 | train | tests/core/type/cover_controller_test.py | val | xaviml/controllerx:tests/core/type/cover_controller_test.py | 106 | 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) | added | e02f9ade0e42570a66edb8422040f699bd8001490540b6a3f36a3b6040d05593 | 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... | null | null | null |
xaviml/controllerx | train | 29 | 080579959c8bd36c7c2e637fde4dc29019df63a7 | train | tests/core/type/cover_controller_test.py | val | xaviml/controllerx:tests/core/type/cover_controller_test.py | 133 | 8 | assert_* | test_toggle | 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... | "cover/stop_cover") | added | 44cabc769c991baf746bfe7e737b3b87d4107cc5eba0d2f2c9fea7c16a6378a9 | assert_*|test_toggle|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 su... | null | null | null |
xaviml/controllerx | train | 30 | 3bca71244ed4a6fa1c94380746d3e8eb23a58d3f | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 290 | 4 | assert_* | test_call_light_service | 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... | "test_service") | added | 2061422525262a56bd1431ca860195586fd81a4ab6c58d741534ec27a2dfb1d2 | assert_*|test_call_light_service|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_s... | null | null | null |
xaviml/controllerx | train | 30 | 3bca71244ed4a6fa1c94380746d3e8eb23a58d3f | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 321 | 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 | 9f66b7c7a3f2d90a9164a58fc87ccef5230ad3d654f7c5ee0431bd5876ea9b1f | 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 | 30 | 3bca71244ed4a6fa1c94380746d3e8eb23a58d3f | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 382 | 4 | assert | test_on_full | 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... | Stepper.TOGGLE_UP | added | 3e037fd6cda4237bc38bad9fcbf0292ad4e8401261ac9fdd31339ccf7642340a | assert|test_on_full|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 | 30 | 3bca71244ed4a6fa1c94380746d3e8eb23a58d3f | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 482 | 4 | assert | test_click | 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 | e083659b9236129725ef77d66974974cb239e6fa7fe6bbc9fe6ebdcda688e742 | assert|test_click|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 | 31 | 7477ebcd7c28b58f537d223a1cd2a3ec4a7eb28c | train | tests/core/stepper/minmax_stepper_test.py | train | xaviml/controllerx:tests/core/stepper/minmax_stepper_test.py | 33 | 4 | assert | test_minmax_stepper_get_direction | import pytest
from core.stepper.minmax_stepper import MinMaxStepper
from core.stepper import Stepper
@pytest.mark.parametrize(
"minmax, value, direction, previous_direction, expected_direction",
[
((0, 10), 10, Stepper.DOWN, None, Stepper.DOWN),
((0, 10), 11, Stepper.DOWN, None, Stepper.DOWN)... | expected_direction | added | 65c16cac72929134b295da4cb8aef87457b3bb242f660433bd366d596d46b597 | assert|test_minmax_stepper_get_direction|import pytest from core.stepper.minmax_stepper import MinMaxStepper from core.stepper import Stepper @pytest.mark.parametrize( "minmax, value, direction, previous_direction, expected_direction", [ ((0, 10), 10, Stepper.DOWN, None, Stepper.DOWN), ((0, 10), 11, Stepper.DOWN, None,... | null | null | null |
xaviml/controllerx | train | 31 | 7477ebcd7c28b58f537d223a1cd2a3ec4a7eb28c | train | tests/core/stepper/minmax_stepper_test.py | train | xaviml/controllerx:tests/core/stepper/minmax_stepper_test.py | 60 | 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",
[
((0, 10), 10, Stepper.DOWN, None, Stepper.DOWN),
((0, 10), 11, Stepper.DOWN, None, Stepper.DOWN)... | expected_value | added | 52117cb2511db1dcae880dfb8fb2893012a205d302c98f07d2a64c1aabca4ed1 | 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", [ ((0, 10), 10, Stepper.DOWN, None, Stepper.DOWN), ((0, 10), 11, Stepper.DOWN, None, Stepper.... | null | null | null |
xaviml/controllerx | train | 31 | 7477ebcd7c28b58f537d223a1cd2a3ec4a7eb28c | train | tests/core/stepper/minmax_stepper_test.py | train | xaviml/controllerx:tests/core/stepper/minmax_stepper_test.py | 61 | 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",
[
((0, 10), 10, Stepper.DOWN, None, Stepper.DOWN),
((0, 10), 11, Stepper.DOWN, None, Stepper.DOWN)... | expected_exceeded | added | c13dddf697c87e9ad8ba38c6c1b7946276d1d58e152a28cc4b58e8f5a0f941b5 | 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", [ ((0, 10), 10, Stepper.DOWN, None, Stepper.DOWN), ((0, 10), 11, Stepper.DOWN, None, Stepper.... | null | null | null |
xaviml/controllerx | train | 31 | 7477ebcd7c28b58f537d223a1cd2a3ec4a7eb28c | train | tests/core/stepper/stepper_test.py | train | xaviml/controllerx:tests/core/stepper/stepper_test.py | 30 | 4 | assert | test_get_direction | import pytest
from core.stepper import Stepper
class FakeStepper(Stepper):
def step(self, value, direction):
pass
@pytest.mark.parametrize(
"direction_input, previous_direction, expected_direction",
[
(Stepper.UP, Stepper.UP, Stepper.UP),
(Stepper.DOWN, Stepper.DOWN, Stepper.DOW... | expected_direction | modified | 34096abb65a8a945c780d6ecb81f05f881b10ce370eb7aa74914d1e9e15a7ccb | assert|test_get_direction|import pytest from core.stepper import Stepper class FakeStepper(Stepper): def step(self, value, direction): pass @pytest.mark.parametrize( "direction_input, previous_direction, expected_direction", [ (Stepper.UP, Stepper.UP, Stepper.UP), (Stepper.DOWN, Stepper.DOWN, Stepper.DOWN), (Stepper.UP... | expected_direction | 30 | 4 |
xaviml/controllerx | train | 31 | 7477ebcd7c28b58f537d223a1cd2a3ec4a7eb28c | train | tests/core/stepper/stepper_test.py | train | xaviml/controllerx:tests/core/stepper/stepper_test.py | 49 | 4 | assert | test_sign | import pytest
from core.stepper import Stepper
class FakeStepper(Stepper):
def step(self, value, direction):
pass
@pytest.mark.parametrize(
"direction_input, previous_direction, expected_direction",
[
(Stepper.UP, Stepper.UP, Stepper.UP),
(Stepper.DOWN, Stepper.DOWN, Stepper.DOW... | expected_sign | modified | 49ca4ee9cb64d3feb2c824f2422cf3c5846996c2a1e7083095fbf558dda6746d | assert|test_sign|import pytest from core.stepper import Stepper class FakeStepper(Stepper): def step(self, value, direction): pass @pytest.mark.parametrize( "direction_input, previous_direction, expected_direction", [ (Stepper.UP, Stepper.UP, Stepper.UP), (Stepper.DOWN, Stepper.DOWN, Stepper.DOWN), (Stepper.UP, Stepper... | expected_sign | 49 | 4 |
xaviml/controllerx | train | 31 | 7477ebcd7c28b58f537d223a1cd2a3ec4a7eb28c | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 429 | 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 | 58f0440dfcb49808bb268af3f4a1dab3fc36f217754f75c8654daada928fc58b | 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 | 31 | 7477ebcd7c28b58f537d223a1cd2a3ec4a7eb28c | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 545 | 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 | 5ccb7b28cefde13168d9d4470d3134435d81633f817ac923c82aaffd114c1731 | 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 | 31 | 7477ebcd7c28b58f537d223a1cd2a3ec4a7eb28c | train | tests/core/type/light_controller_test.py | train | xaviml/controllerx:tests/core/type/light_controller_test.py | 566 | 8 | assert_* | test_hold_loop | 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... | "hold") | added | a047f1880bfbacf02b1c43eb764f27d53d71928a498fba999d6f43e5bde581f3 | assert_*|test_hold_loop|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 im... | 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 | 80 | 4 | assert | test_minmax_stepper_get_direction | 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_direction | added | c0c897dd26ad577ed4deb9c95fae7791eb4131d61b52fc56918f99dadcb48bf1 | assert|test_minmax_stepper_get_direction|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, N... | 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 | 81 | 4 | assert | test_minmax_stepper_get_direction | 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_new_previous_direction | added | 4f63d5032fe816c7ddc8ceadd673bbabd0d815975dad04e3807df0dd8b82593f | assert|test_minmax_stepper_get_direction|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, N... | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.