start running tests

This commit is contained in:
Yann Leboulanger 2016-10-10 15:22:51 +02:00
parent 3dcdee70ba
commit e5b69fae5c
4 changed files with 5 additions and 5 deletions

View File

@ -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]

View File

@ -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',]

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''