fixup! Move to json_serde, add tests and implement missing python api

This commit is contained in:
jikstra
2019-11-26 22:22:46 +01:00
committed by holger krekel
parent 6d30ccfc63
commit 594bf3dfc8
2 changed files with 4 additions and 3 deletions

View File

@@ -166,6 +166,7 @@ class TestOfflineChat:
assert d["profile_image"] == "" if chat.get_profile_image() is None else chat.get_profile_image() assert d["profile_image"] == "" if chat.get_profile_image() is None else chat.get_profile_image()
assert d["subtitle"] == chat.get_subtitle() assert d["subtitle"] == chat.get_subtitle()
assert d["draft"] == "" if chat.get_draft() is None else chat.get_draft() assert d["draft"] == "" if chat.get_draft() is None else chat.get_draft()
def test_group_chat_creation_with_translation(self, ac1): def test_group_chat_creation_with_translation(self, ac1):
ac1.set_stock_translation(const.DC_STR_NEWGROUPDRAFT, "xyz %1$s") ac1.set_stock_translation(const.DC_STR_NEWGROUPDRAFT, "xyz %1$s")
ac1._evlogger.consume_events() ac1._evlogger.consume_events()