Use in unit tests¶
The MockSession class is a drop-in
replacement for Session which can be used in tests
or in non-production environments. The MockSession class will both log and
record any messages sent to send_email().
The MockSession class is a drop-in
replacement for Session which can be used in tests
or in non-production environments. The MockSession class will both log and
record any messages sent to send_email().