Building testcases for an integration

I have 2 integrations in hass, but now i want to start adding testcases to them, but i’m not sure where to start.

The integrations use local_push, I see 2 options here:

  • Completely mock the libraray and simulate everything as its coming from the library
  • Only mick the network send/receive side of the library and simulate events happening on the network via some sort of etst fixtures

What is the best way, does anyone have examples on where to start?