Commit e5b69fae authored by Yann Leboulanger's avatar Yann Leboulanger

start running tests

parent 3dcdee70
......@@ -238,7 +238,7 @@ class LegacyContactsAPI:
self._metacontact_manager.add_account(account_name)
def get_accounts(self):
return self._accounts.keys()
return list(self._accounts.keys())
def remove_account(self, account):
del self._accounts[account]
......
......@@ -139,7 +139,7 @@ class TestRosterWindow(unittest.TestCase):
# Contacts kept their info
contact = instances[0]
self.assertEquals(contact.groups, contacts[acc][jid]['groups'],
self.assertEquals(sorted(contact.groups), sorted(contacts[acc][jid]['groups']),
msg='Group Missmatch')
groups = contacts[acc][jid]['groups'] or ['General',]
......
......@@ -23,8 +23,8 @@ configdir = gajim_root + '/test/tmp'
pluginsconfigdir = configdir + '/pluginsconfig'
# define _ for i18n
import __builtin__
__builtin__._ = lambda x: x
import builtins
builtins._ = lambda x: x
def setup_env():
# wipe config directory
......
#!/usr/bin/env python
#!/usr/bin/env python3
'''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment