From f65697a884936d20c329fe2a566d32043b3cef63 Mon Sep 17 00:00:00 2001 From: Bezleputh Date: Thu, 4 Jul 2013 13:35:24 +0200 Subject: [PATCH] correct job capability and module tests in order to avoid encoding error in console application --- modules/apec/test.py | 1 - modules/lolix/test.py | 1 - weboob/capabilities/job.py | 3 --- 3 files changed, 5 deletions(-) diff --git a/modules/apec/test.py b/modules/apec/test.py index 10cd9606..94eac674 100644 --- a/modules/apec/test.py +++ b/modules/apec/test.py @@ -28,5 +28,4 @@ class ApecTest(BackendTest): l = list(self.backend.search_job(u'maitre brasseur')) assert len(l) advert = self.backend.get_job_advert(l[0].id, None) - print advert.__repr__() self.assertTrue(advert.url, 'URL for announce "%s" not found: %s' % (advert.id, advert.url)) diff --git a/modules/lolix/test.py b/modules/lolix/test.py index 8189b7a9..0c74dece 100644 --- a/modules/lolix/test.py +++ b/modules/lolix/test.py @@ -28,5 +28,4 @@ class LolixTest(BackendTest): l = list(self.backend.search_job()) assert len(l) advert = self.backend.get_job_advert(l[0].id, l[0]) - print advert.__repr__() self.assertTrue(advert.url, 'URL for announce "%s" not found: %s' % (advert.id, advert.url)) diff --git a/weboob/capabilities/job.py b/weboob/capabilities/job.py index 1b55a438..53e5de78 100644 --- a/weboob/capabilities/job.py +++ b/weboob/capabilities/job.py @@ -54,9 +54,6 @@ class BaseJobAdvert(CapBaseObject): message += u'experience : %s\r\n' % self.experience return message - def __repr__(self): - return self.__unicode__() - @classmethod def id2url(cls, _id): """Overloaded in child classes provided by backends."""