summaryrefslogtreecommitdiff
path: root/tests/account_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/account_test.py')
-rw-r--r--tests/account_test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/account_test.py b/tests/account_test.py
index c1fca557..9f6287be 100644
--- a/tests/account_test.py
+++ b/tests/account_test.py
@@ -15,6 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+import logging
import unittest
from alot import account
@@ -172,4 +173,5 @@ class TestSend(unittest.TestCase):
async def test_failing_sendmail_command_is_noticed(self):
a = account.SendmailAccount(address="test@alot.dev", cmd="false")
with self.assertRaises(account.SendingMailFailed):
- await a.send_mail("some text")
+ with self.assertLogs(level=logging.ERROR):
+ await a.send_mail("some text")