Test writing help

I’ve created a new integration to support Trackimo devices.

I’d like to potentially create a PR for main rather than have it come in via HACS, but really need some help writing the tests.

I’ve read the documentation - but I (like others) can’t seem to grok what tests I actually have to write, and what I should be testing.

Does anybody have time to help with some test writing, or at least point me in the right direction?

Thanks in advance

I would suggest looking at the tests in the core repository for existing integrations for ideas. The config flow tests are all fairly similar. So maybe start there?

The hardest part, at least for me, is designing a method to mock out the behavior of the external service. This part is usually unique unfortunately.

That’s what I was struggling with - mocking the process and responses for the tests.