Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 5, 2024
1 parent 795146e commit a6bb37c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 31 deletions.
31 changes: 0 additions & 31 deletions tests/test_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,34 +103,3 @@ def test_socket_yandex():
}
},
}


def test_washing_machine():
device = {
"id": "xxx",
"name": "Стиральная машина",
"names": ["Стиральная машина"],
"type": "devices.types.washing_machine",
"icon_url": "https://avatars.mds.yandex.net/get-iot/icons-devices-devices.types.washing_machine.svg/orig",
"state": "offline",
"groups": [],
"room": "Ванная",
"capabilities": [
{
"retrievable": true,
"type": "devices.capabilities.on_off",
"state": {"instance": "on", "value": true},
"parameters": {"split": false},
},
{
"retrievable": true,
"type": "devices.capabilities.toggle",
"state": {"instance": "pause", "value": true},
"parameters": {"instance": "pause", "name": "пауза"},
},
],
"properties": [],
"skill_id": "xxx",
"external_id": "xxx",
"favorite": false,
}
32 changes: 32 additions & 0 deletions tests/test_unknown.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
from . import true, false


def test_washing_machine():
device = {
"id": "xxx",
"name": "Стиральная машина",
"names": ["Стиральная машина"],
"type": "devices.types.washing_machine",
"icon_url": "https://avatars.mds.yandex.net/get-iot/icons-devices-devices.types.washing_machine.svg/orig",
"state": "offline",
"groups": [],
"room": "Ванная",
"capabilities": [
{
"retrievable": true,
"type": "devices.capabilities.on_off",
"state": {"instance": "on", "value": true},
"parameters": {"split": false},
},
{
"retrievable": true,
"type": "devices.capabilities.toggle",
"state": {"instance": "pause", "value": true},
"parameters": {"instance": "pause", "name": "пауза"},
},
],
"properties": [],
"skill_id": "xxx",
"external_id": "xxx",
"favorite": false,
}

0 comments on commit a6bb37c

Please sign in to comment.