omsf-eco-infra / ticgithub

Tools to use a GitHub repository as a support ticket system
MIT License
0 stars 0 forks source link

Tests for Bot #29

Open dwhswenson opened 1 year ago

dwhswenson commented 1 year ago

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.