diff options
author | Richard van der Hoff <richard@matrix.org> | 2019-03-15 16:49:47 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2019-03-19 11:44:43 +0000 |
commit | 8c1774e821762f2f6feda605f64a45a5b8365860 (patch) | |
tree | 2fd6cbbccb5076d13a9e6f4c3ebc9b3d7d1de283 | |
parent | Merge remote-tracking branch 'origin/develop' into HEAD (diff) | |
download | synapse-8c1774e821762f2f6feda605f64a45a5b8365860.tar.xz |
Fix email test
The Mailer expects the config object to have `email_smtp_pass` and `email_riot_base_url` attributes (and it won't by default, because the default config impl doesn't set any of the attributes unless email_enable_notifs is set).
-rw-r--r-- | tests/push/test_email.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/push/test_email.py b/tests/push/test_email.py index 50ee6910d1..be3fed8de3 100644 --- a/tests/push/test_email.py +++ b/tests/push/test_email.py @@ -63,8 +63,10 @@ class EmailPusherTests(HomeserverTestCase): config.email_smtp_port = 20 config.require_transport_security = False config.email_smtp_user = None + config.email_smtp_pass = None config.email_app_name = "Matrix" config.email_notif_from = "test@example.com" + config.email_riot_base_url = None hs = self.setup_test_homeserver(config=config, sendmail=sendmail) |