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.
This commit is contained in:
Alexander Krotov
2020-09-23 04:08:42 +03:00
committed by link2xt
parent 2e3352afca
commit 21b18836ca

View File

@@ -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)