forked from mirror/django-mailbox
Add tests docs to CI and fix docs warning (#238)
* Add tests docs to CI and fix docs warning * Switch to storing environment variables in travis outside of secure vars. * Force a rebuild. * Force a rebuild. * Run integration tests just once per test run. * Minor updates. * Nevermind; this test class covers more than just integration tests. * Attempting to fix docs build via https://stackoverflow.com/questions/61711710/runtimeerror-class-not-set-defining-abstractbaseuser-as-class-django-co\#comment112739057_63045563 * Minor docs fix. Co-authored-by: Adam Coddington <me@adamcoddington.net>
This commit is contained in:
parent
225da2155f
commit
5abc1981dc
8 changed files with 27 additions and 23 deletions
|
|
@ -701,11 +701,11 @@ class Message(models.Model):
|
|||
self.body = base64.b64encode(body.encode('utf-8')).decode('ascii')
|
||||
|
||||
def get_email_object(self):
|
||||
"""Returns an `email.message.Message` instance representing the
|
||||
"""Returns an `email.message.EmailMessage` instance representing the
|
||||
contents of this message and all attachments.
|
||||
|
||||
See [email.Message.Message]_ for more information as to what methods
|
||||
and properties are available on `email.message.Message` instances.
|
||||
See [email.message.EmailMessage]_ for more information as to what methods
|
||||
and properties are available on `email.message.EmailMessage` instances.
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
@ -715,8 +715,8 @@ class Message(models.Model):
|
|||
using stored attachments, or read the message contents stored
|
||||
on-disk.
|
||||
|
||||
.. [email.Message.Message]: Python's `email.message.Message` docs
|
||||
(https://docs.python.org/2/library/email.message.html)
|
||||
.. [email.message.EmailMessage] Python's `email.message.EmailMessage` docs
|
||||
(https://docs.python.org/3/library/email.message.html)
|
||||
|
||||
"""
|
||||
if not hasattr(self, '_email_object'): # Cache fill
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue