Move to json_serde, add tests and implement missing python api

This commit is contained in:
jikstra
2019-11-26 22:10:52 +01:00
committed by holger krekel
parent 1b79f513a3
commit 6d30ccfc63
3 changed files with 34 additions and 31 deletions

View File

@@ -156,8 +156,16 @@ class TestOfflineChat:
assert chat.get_name() == "title2"
d = chat.get_summary()
assert d["chat_id"] == chat.id
print(d)
assert d["id"] == chat.id
assert d["type"] == chat.get_type()
assert d["name"] == chat.get_name()
assert d["archived"] == chat.is_archived()
#assert d["param"] == chat.param
assert d["color"] == chat.get_color()
assert d["profile_image"] == "" if chat.get_profile_image() is None else chat.get_profile_image()
assert d["subtitle"] == chat.get_subtitle()
assert d["draft"] == "" if chat.get_draft() is None else chat.get_draft()
def test_group_chat_creation_with_translation(self, ac1):
ac1.set_stock_translation(const.DC_STR_NEWGROUPDRAFT, "xyz %1$s")
ac1._evlogger.consume_events()