core/tests/components/plex/helpers.py

8 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()