In the model used here, the bot is the only thing that actually does any write-type action; i.e., it is the thing that creates issues/comments, and also the thing that sends emails. For testing, we'll just mock out these aspects and trust (hope?) that the upstream APIs don't break.
On the SMTP class, for now we'll just skip testing (or fully mock out) sendmail, although it might be interesting to set up testing using something like Greenmail.
In the model used here, the bot is the only thing that actually does any write-type action; i.e., it is the thing that creates issues/comments, and also the thing that sends emails. For testing, we'll just mock out these aspects and trust (hope?) that the upstream APIs don't break.
github.Repositoryin theBot.repoproperty. Needs:create_issueget_issue(which needs a mock forcreate_comment)get_issueswith state either'open'or'all'On the
SMTPclass, for now we'll just skip testing (or fully mock out) sendmail, although it might be interesting to set up testing using something like Greenmail.