Poolitzer · GitHub

@Poolitzer

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)

@Bibo-Joshi

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.

@Bibo-Joshi

Copy link Copy Markdown

Member

@Poolitzer what's your status on this? Pleaselet me know if you'd like support.

@Poolitzer

Copy link Copy Markdown

Member Author

Will do the next days, sorry life happened

… into initialize_bot_fix

@Bibo-Joshi

@Bibo-Joshi

@Bibo-Joshi

Copy link Copy Markdown

Member

thanks for the fix!

Read the original on github.com ↗