Skip to content

Commit

Permalink
Add test for Error doing job: _GatheringFuture exception was never re…
Browse files Browse the repository at this point in the history
…trieved #282
  • Loading branch information
Xyaren committed Feb 18, 2025
1 parent 1daf7b4 commit ef732f2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/api/test_event_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,18 @@ def test_eit_change_event_no_channel_num_deserializes():
],
}
assert True


def test_eit_change_event_issue282():
data = '{"type":"EVENT_EIT_CHANGE","instance_id":28,"channel_code":"421","mediaId":"4806","program_info":[{},{}]}'
ta = TypeAdapter(EitChangedEvent)
obj = ta.validate_json(data)
assert obj.model_dump() == {
"type": "EVENT_EIT_CHANGE",
"instance_id": 28,
"channel_code": 421,
"channel_num": None,
"media_id": "4806",
"program_info": [None, None],
}
assert True

0 comments on commit ef732f2

Please sign in to comment.