Skip to content

Commit cf1a5a2

Browse files
committed
Fix failing unit tests
1 parent da5e5c9 commit cf1a5a2

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

bellows/ezsp/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,6 @@ class ValueConfig:
127127
12: DEFAULT_CONFIG_NEW,
128128
13: DEFAULT_CONFIG_NEW,
129129
14: DEFAULT_CONFIG_NEW,
130+
16: DEFAULT_CONFIG_NEW,
131+
17: DEFAULT_CONFIG_NEW,
130132
}

tests/test_ezsp.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,9 @@ async def test_wait_for_stack_status(ezsp_f):
719719

720720
def test_ezsp_versions(ezsp_f):
721721
for version in range(4, EZSP_LATEST + 1):
722+
# Version 15 was never released, so skip it
723+
if version == 15:
724+
continue
722725
assert version in ezsp_f._BY_VERSION
723726
assert ezsp_f._BY_VERSION[version].__name__ == f"EZSPv{version}"
724727
assert ezsp_f._BY_VERSION[version].VERSION == version

tests/test_ezsp_v16.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
@pytest.fixture
1414
def ezsp_f():
1515
"""EZSP v16 protocol handler."""
16-
ezsp = bellows.ezsp.v16.EZSPv14(MagicMock(), MagicMock())
16+
ezsp = bellows.ezsp.v16.EZSPv16(MagicMock(), MagicMock())
1717
mock_ezsp_commands(ezsp)
1818

1919
return ezsp

tests/test_ezsp_v17.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
@pytest.fixture
1414
def ezsp_f():
1515
"""EZSP v17 protocol handler."""
16-
ezsp = bellows.ezsp.v17.EZSPv14(MagicMock(), MagicMock())
16+
ezsp = bellows.ezsp.v17.EZSPv17(MagicMock(), MagicMock())
1717
mock_ezsp_commands(ezsp)
1818

1919
return ezsp

0 commit comments

Comments
 (0)