Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed Jul 19, 2023
1 parent a245845 commit 2df0408
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion miio/tests/test_miot_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,18 @@ def test_releaselist_single_release(miotspec_releases: ReleaseList):
info: ReleaseInfo = miotspec_releases.info_for_model(wanted_model)
assert info.model == wanted_model
assert (
info.type == "urn:miot-spec-v2:device:outlet:0000A002:vendor-single-release:1"
info.type == "urn:miot-spec-v2:device:outlet:0000xxxx:vendor-single-release:1"
)


def test_releaselist_multiple_releases(miotspec_releases: ReleaseList):
"""Test that the newest version gets picked."""
two_releases = miotspec_releases.info_for_model("vendor.plug.two_releases")
assert two_releases.version == 2
assert (
two_releases.type
== "urn:miot-spec-v2:device:outlet:0000xxxx:vendor-two-releases:2"
)


def test_releaselist_missing_model(miotspec_releases: ReleaseList):
Expand Down

0 comments on commit 2df0408

Please sign in to comment.