Page MenuHomeSoftware Heritage

Make sure we only connect to SMTP on-demand
ClosedPublic

Authored by olasd on Apr 26 2018, 11:34 AM.

Details

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

Diff Detail

Repository
rDVAU Software Heritage Vault
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.