comparison src/test/helpers.py @ 512:862c0d6ab974

core, bridge, quick_frontend: MUC private messages history management: - history now store message type - sqlite3 storage: fixed resource management in getHistory - bridge: added message type in getHistory return value - quick_chats: (ugly) hacks to manage private history filtering/nickname printing
author Goffi <goffi@goffi.org>
date Wed, 17 Oct 2012 00:35:48 +0200
parents 23cbdf0a0777
children ca13633d3b6b
comparison
equal deleted inserted replaced
511:62f7f2403093 512:862c0d6ab974
58 """Class to simulate and test memory object""" 58 """Class to simulate and test memory object"""
59 59
60 def getProfileName(self, profile_key): 60 def getProfileName(self, profile_key):
61 return profile_key 61 return profile_key
62 62
63 def addToHistory(self, from_jid, to_jid, message, timestamp=None, profile=None): 63 def addToHistory(self, from_jid, to_jid, message, _type='chat', timestamp=None, profile=None):
64 pass 64 pass
65 65
66 def addContact(self, contact_jid, attributes, groups, profile_key='@DEFAULT@'): 66 def addContact(self, contact_jid, attributes, groups, profile_key='@DEFAULT@'):
67 pass 67 pass
68 68