diff --git a/modules/popolemploi/__init__.py b/modules/poleemploi/__init__.py
similarity index 91%
rename from modules/popolemploi/__init__.py
rename to modules/poleemploi/__init__.py
index 85b6a0fadb95413c1fe8080b9fc8e4930e0c9216..a6e4982d09c628d1cf2575d55acf07cf7234050c 100644
--- a/modules/popolemploi/__init__.py
+++ b/modules/poleemploi/__init__.py
@@ -18,7 +18,7 @@
# along with this weboob module. If not, see .
-from .module import PopolemploiModule
+from .module import PoleEmploiModule
-__all__ = ['PopolemploiModule']
+__all__ = ['PoleEmploiModule']
diff --git a/modules/popolemploi/browser.py b/modules/poleemploi/browser.py
similarity index 96%
rename from modules/popolemploi/browser.py
rename to modules/poleemploi/browser.py
index 407c4eff35b2af05b551faaa44cb14db7c9c1784..6556522ab1144c7c92cbf9e87f5d1c1d94a28502 100644
--- a/modules/popolemploi/browser.py
+++ b/modules/poleemploi/browser.py
@@ -17,15 +17,16 @@
# You should have received a copy of the GNU Affero General Public License
# along with this weboob module. If not, see .
-from .pages import SearchPage, AdvertPage
from weboob.browser import PagesBrowser, URL
from weboob.tools.compat import urlencode
-__all__ = ['PopolemploiBrowser']
+from .pages import SearchPage, AdvertPage
+
+__all__ = ['PoleEmploiBrowser']
-class PopolemploiBrowser(PagesBrowser):
+class PoleEmploiBrowser(PagesBrowser):
BASEURL = 'https://candidat.pole-emploi.fr'
advert = URL('/offres/recherche/detail/(?P.*)', AdvertPage)
diff --git a/modules/popolemploi/favicon.png b/modules/poleemploi/favicon.png
similarity index 100%
rename from modules/popolemploi/favicon.png
rename to modules/poleemploi/favicon.png
diff --git a/modules/popolemploi/module.py b/modules/poleemploi/module.py
similarity index 98%
rename from modules/popolemploi/module.py
rename to modules/poleemploi/module.py
index 667e2f69fb3c054a216f766858bf2247e68fb5ed..5796142457db92106203a03f53103a4d1034fe02 100644
--- a/modules/popolemploi/module.py
+++ b/modules/poleemploi/module.py
@@ -25,19 +25,20 @@
from weboob.capabilities.job import CapJob
from weboob.tools.value import Value, ValueInt
-from .browser import PopolemploiBrowser
+from .browser import PoleEmploiBrowser
-__all__ = ['PopolemploiModule']
+__all__ = ['PoleEmploiModule']
-class PopolemploiModule(Module, CapJob):
- NAME = 'popolemploi'
+
+class PoleEmploiModule(Module, CapJob):
+ NAME = 'poleemploi'
DESCRIPTION = u'Pole Emploi website'
MAINTAINER = u'Bezleputh'
EMAIL = 'carton_ben@yahoo.fr'
VERSION = '2.1'
- BROWSER = PopolemploiBrowser
+ BROWSER = PoleEmploiBrowser
places_choices = OrderedDict([(k, u'%s' % (v)) for k, v in sorted({
'100|PAYS|01': u'France entière',
diff --git a/modules/popolemploi/pages.py b/modules/poleemploi/pages.py
similarity index 100%
rename from modules/popolemploi/pages.py
rename to modules/poleemploi/pages.py
diff --git a/modules/popolemploi/test.py b/modules/poleemploi/test.py
similarity index 92%
rename from modules/popolemploi/test.py
rename to modules/poleemploi/test.py
index 3398c0d29b130a93e4bc31b0bd42fe6c9823ec37..f06836177666ac3c2c4678a27857afc432cde5bb 100644
--- a/modules/popolemploi/test.py
+++ b/modules/poleemploi/test.py
@@ -17,13 +17,12 @@
# You should have received a copy of the GNU Affero General Public License
# along with this weboob module. If not, see .
-
from weboob.tools.test import BackendTest
from weboob.tools.value import Value
-class PopolemploiTest(BackendTest):
- MODULE = 'popolemploi'
+class PoleEmploiTest(BackendTest):
+ MODULE = 'poleemploi'
def setUp(self):
if not self.is_backend_configured():
@@ -34,13 +33,13 @@ def setUp(self):
self.backend.config['domain'] = Value(value='M18')
self.backend.config['limit_data'] = Value(value='93')
- def test_popolemploi_search(self):
+ def test_poleemploi_search(self):
l = list(self.backend.search_job('infographiste'))
assert len(l)
advert = self.backend.get_job_advert(l[0].id, l[0])
self.assertTrue(advert.url, 'URL for announce "%s" not found: %s' % (advert.id, advert.url))
- def test_popolemploi_advanced_search(self):
+ def test_poleemploi_advanced_search(self):
l = list(self.backend.advanced_search_job())
assert len(l)
advert = self.backend.get_job_advert(l[0].id, l[0])