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 Inbox (offline tests) #30

Open dwhswenson opened 1 year ago

dwhswenson commented 1 year ago

These are the tests that mock out the IMAP4 object. This assumes that the IMAP calls behave as expected: that the imaplib API does not change and that the behavior of IMAP requests (including Gmail IMAP extensions) does not change. Technically, there should be a second set of tests to ensure that these assumptions remain valid, but those are unlikely to change.

This will require the following:

Implementation: Probably a stub class to mock out the necessary behaviors, which allows for subclass stubs?

NB: the incorrect unique ID problem identified in #52 should be fixed before some of these tests (especially around unique ID in Gmail) are implemented.