Copy link
Copy Markdown
Member
I am unsure if I should test this, because I can't really rewrite the initialize, so I think the only appropriate way would be to pick an invalid token, but unsure if this is worth it (its a really short function after all)
Copy link
Copy Markdown
Member
@Poolitzer You can mock get_me to raise an exception and mock HTTPXRequest.shutdown to ensure that the shutdown is still called - or at least check that the logging line "This Bot is already shut down. Returning" is not issued.
Copy link
Copy Markdown
Member
@Poolitzer what's your status on this? Pleaselet me know if you'd like support.