File: notest_async_heating_group.py

package info (click to toggle)
python-homematicip 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,796 kB
  • sloc: python: 15,164; makefile: 17; sh: 4
file content (23 lines) | stat: -rw-r--r-- 762 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import pytest

from homematicip.aio.group import AsyncHeatingGroup


@pytest.mark.asyncio
async def test_set_point_temperature(fake_connection):
    heating_group = AsyncHeatingGroup(fake_connection)
    resp = await heating_group.set_point_temperature(10)
    assert resp == "called"
    fake_connection.api_call.mock.assert_called_once_with(
        "group/heating/setSetPointTemperature",
        '{"groupId": null, "setPointTemperature": 10}',
    )


# @pytest.mark.asyncio
# async def test_set_boost(self, enable=True):
#     return await self._connection.api_call(*super().set_boost(enable=enable))
#
# @pytest.mark.asyncio
# async def test_set_active_profile(self, index):
#     return await self._connection.api_call(*super().set_active_profile(index))