~homeworkprod/byceps

eaa53728f6afa74c6e14e7962a9c98cf3f6f9cb3 — Jochen Kupperschmidt a month ago fc820ff
Do not suppress email sending just because of app being in testing mode
1 files changed, 1 insertions(+), 1 deletions(-)

M byceps/email.py
M byceps/email.py => byceps/email.py +1 -1
@@ 24,7 24,7 @@ def init_app(app: Flask) -> None:


def _get_config(app: Flask) -> dict[str, Any]:
    if app.config.get('MAIL_SUPPRESS_SEND', False) or app.testing:
    if app.config.get('MAIL_SUPPRESS_SEND', False):
        return {
            'transport.use': 'mock',
        }