From 21b18836ca011e9c390659931129ebddbcdae2e4 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Wed, 23 Sep 2020 04:08:42 +0300 Subject: [PATCH] test_configure_error_msgs: do not check for "password" repetition When run against host that is not in the provider database or has multiple IMAP servers listed, this test fails because one error is returned for each server. --- python/tests/test_account.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/tests/test_account.py b/python/tests/test_account.py index 16df51a86..4497327ac 100644 --- a/python/tests/test_account.py +++ b/python/tests/test_account.py @@ -1805,8 +1805,7 @@ class TestOnlineAccount: if ev.data1 == 0: break # Password is wrong so it definitely has to say something about "password" - # but the error message should not be repeated: - assert ev.data2.count("password") == 1 + assert "password" in ev.data2 ac2, configdict = acfactory.get_online_config() ac2.update_config(configdict)