fix #1020 -- allow to set os_name in python bindings

This commit is contained in:
holger krekel
2019-12-16 00:07:07 +01:00
parent 2bf9fd6cbc
commit 47d14271ab
2 changed files with 11 additions and 2 deletions

View File

@@ -16,6 +16,14 @@ class TestOfflineAccountBasic:
with pytest.raises(ValueError):
Account(p.strpath)
def test_os_name(self, tmpdir):
p = tmpdir.join("hello.db")
# we can't easily test if os_name is used in X-Mailer
# outgoing messages without a full Online test
# but we at least check Account accepts the arg
ac1 = Account(p.strpath, os_name="solarpunk")
ac1.get_info()
def test_getinfo(self, acfactory):
ac1 = acfactory.get_unconfigured_account()
d = ac1.get_info()