Accept new Plex websocket callback payloads (#40773)

This commit is contained in:
jjlawren authored and GitHub committed 2020-10-01 09:57:45 +02:00
1 parent 6dc25ccc7b
commit be9ff3bd66
5 files changed
+47 -14

No files matched your search

+2 -1
View File
@@ -1,7 +1,8 @@
"""Helper methods for Plex tests."""
from plexwebsocket import SIGNAL_DATA
def trigger_plex_update(mock_websocket):
"""Call the websocket callback method."""
callback = mock_websocket.call_args[0][1]
callback()
callback(SIGNAL_DATA, None, None)