hass-core/tests/components/plex/helpers.py
jjlawren ec13eecc59
Update Plex tests to mock websockets ()
* Update Plex tests to mock websockets

* Avoid unnecessary class mock
2020-06-27 10:03:51 +02:00

7 lines
187 B
Python

"""Helper methods for Plex tests."""
def trigger_plex_update(mock_websocket):
"""Call the websocket callback method."""
callback = mock_websocket.call_args[0][1]
callback()