start running tests
This commit is contained in:
parent
3dcdee70ba
commit
e5b69fae5c
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
|
||||
'''
|
||||
|
|
Loading…
Reference in New Issue