Skip to content

Commit

Permalink
Update test for test_on_full to max brightness
Browse files Browse the repository at this point in the history
  • Loading branch information
sreknob authored Feb 4, 2020
1 parent 6c5b49a commit 750a80c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/core/type/light_controller_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ async def test_toggle(sut, mocker):
@pytest.mark.asyncio
async def test_on_full(sut, mocker):
attribute = "test_attribute"
min_ = 1
max_ = 10
change_light_state_patch = mocker.patch.object(sut, "change_light_state")
stepper = MinMaxStepper(min_, 10, 10)
stepper = MinMaxStepper(1, max_, 10)
sut.manual_steppers = {attribute: stepper}
await sut.on_full(attribute)
change_light_state_patch.assert_called_once_with(
min_, attribute, Stepper.UP, stepper
max_, attribute, Stepper.UP, stepper
)


Expand Down

0 comments on commit 750a80c

Please sign in to comment.