Metadata-Version: 1.1
Name: mailtest
Version: 1.0.0
Summary: A unit testing tool for code that sends email.
Home-page: https://github.com/keredson/mailtest
Author: Derek Anderson
Author-email: public@kered.org
License: UNKNOWN
Description: MailTest
        ========
        
        MailTest is a Python unittesting library that for code that sends email.
        It starts a local SMTP server inside a Python ``with`` block, and
        captures all the email sent to it. These emails can then be read within
        the block.
        
        Example:
        
        ::
        
            with mailtest.Server() as mt:
                send_welcome_email()
                assert len(mt.emails) == 1
        
        Install
        -------
        
        ::
        
            pip3 install mailtest
        
        Configuration
        -------------
        
        Configuration is done via kwargs to ``mailtest.Server()``. Options: -
        ``smtp_port`` (defaults to 1025) - ``sendgrid_port`` (TODO)
        
        Speed
        -----
        
        MailTest can test receive approx. 4000 emails/second on an Intel(R)
        Core(TM) i5-7260U CPU @ 2.20GHz.
        
        Testing
        -------
        
        ::
        
            $ python2 test.py 
            ..
            ----------------------------------------------------------------------
            Ran 2 tests in 0.269s
        
            OK
        
        ::
        
            $ python3 test.py 
            ..
            ----------------------------------------------------------------------
            Ran 2 tests in 0.543s
        
            OK
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
