changeset f196f08e65f9 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=f196f08e65f9 description: start running tests
diffstat:
src/common/contacts.py | 2 +- test/integration/test_roster.py | 2 +- test/lib/__init__.py | 4 ++-- test/runtests.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
diffs (47 lines):
diff -r 5cc25f8ab431 -r f196f08e65f9 src/common/contacts.py --- a/src/common/contacts.py Mon Oct 10 13:47:56 2016 +0100 +++ b/src/common/contacts.py Mon Oct 10 15:22:51 2016 +0200 @@ -238,7 +238,7 @@ 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] diff -r 5cc25f8ab431 -r f196f08e65f9 test/integration/test_roster.py --- a/test/integration/test_roster.py Mon Oct 10 13:47:56 2016 +0100 +++ b/test/integration/test_roster.py Mon Oct 10 15:22:51 2016 +0200 @@ -139,7 +139,7 @@
# 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',] diff -r 5cc25f8ab431 -r f196f08e65f9 test/lib/__init__.py --- a/test/lib/__init__.py Mon Oct 10 13:47:56 2016 +0100 +++ b/test/lib/__init__.py Mon Oct 10 15:22:51 2016 +0200 @@ -23,8 +23,8 @@ pluginsconfigdir = configdir + '/pluginsconfig'
# define _ for i18n -import __builtin__ -__builtin__._ = lambda x: x +import builtins +builtins._ = lambda x: x
def setup_env(): # wipe config directory diff -r 5cc25f8ab431 -r f196f08e65f9 test/runtests.py --- a/test/runtests.py Mon Oct 10 13:47:56 2016 +0100 +++ b/test/runtests.py Mon Oct 10 15:22:51 2016 +0200 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3
'''