HomeSoftware Heritage

Make sure we only connect to SMTP on-demand

Description

Make sure we only connect to SMTP on-demand

Summary:
When running the tests, we expect the local MTA to be working. That's not something that we can assume.

The notification tests all mock the SMTP object to check whether it's called
properly, so we don't really need to connect on backend initialization.

Test Plan:
Run tests with local MTA disabled, make sure they still pass.

Group Reviewers: Reviewers

Reviewers: ardumont

Reviewed By: ardumont

Differential Revision: https://forge.softwareheritage.org/D308

Details

Provenance
olasdAuthored on Apr 26 2018, 2:01 PM
olasdPushed on Apr 26 2018, 2:01 PM
Reviewer
ardumont
Differential Revision
D308: Make sure we only connect to SMTP on-demand
Parents
rDVAUa5ab9358de02: Fix SQL syntax error
Branches
Unknown
Tags
Unknown