Skip to content

Commit

Permalink
Avoid mocking EZSP when testing multicast
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Jul 24, 2024
1 parent 0622d1a commit 1f61799
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tests/test_multicast.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@
import bellows.multicast
import bellows.types as t

from tests.common import mock_ezsp_commands

CUSTOM_SIZE = 12


@pytest.fixture
def ezsp_f():
e = MagicMock()
e.getConfigurationValue = AsyncMock(
return_value=[t.EmberStatus.SUCCESS, CUSTOM_SIZE]
)
return e
"""EZSP v8 protocol handler."""
ezsp = bellows.ezsp.v8.EZSPv8(MagicMock(), MagicMock())
mock_ezsp_commands(ezsp)

ezsp.getConfigurationValue.return_value = [t.EmberStatus.SUCCESS, CUSTOM_SIZE]

return ezsp


@pytest.fixture
Expand Down

0 comments on commit 1f61799

Please sign in to comment.