1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-04 02:09:17 +02:00

- make set_config() more like the c-version but make configure() accept **kwargs

- some safety checks: you can't modify addr after successful configure
This commit is contained in:
holger krekel 2018-09-23 22:51:12 +02:00
parent bea807f012
commit da78552622
3 changed files with 41 additions and 15 deletions

View file

@ -125,6 +125,10 @@ class TestOnlineAccount:
self.wait_configuration_progress(ac1, 1000)
assert ac1.get_config("mail_pw")
assert ac1.is_configured()
with pytest.raises(ValueError):
ac1.set_config("addr", "123@example.org")
with pytest.raises(ValueError):
ac1.configure(addr="123@example.org")
def test_forward_messages(self, acfactory):
ac1 = acfactory.get_live_account()