Commit 3ecb491c authored by Florent Fourcot's avatar Florent Fourcot

s/BACKEND/MODULE/

parent c678dd6b
......@@ -409,7 +409,7 @@ Edit ``test.py`` and write, for example::
__all__ = ['ExampleTest']
class ExampleTest(BackendTest):
BACKEND = 'example'
MODULE = 'example'
def test_iter_accounts(self):
accounts = list(self.backend.iter_accounts())
......
......@@ -44,7 +44,7 @@ Example::
from weboob.tools.test import BackendTest
class YoutubeTest(BackendTest):
BACKEND = 'youtube'
MODULE = 'youtube'
def test_youtube(self):
l = [v for v in self.backend.iter_search_results('lol')]
......
......@@ -21,7 +21,7 @@ from weboob.tools.test import BackendTest
class SevenFiftyGramsTest(BackendTest):
BACKEND = '750g'
MODULE = '750g'
def test_recipe(self):
recipes = self.backend.iter_recipes('fondue')
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class AdeccoTest(BackendTest):
BACKEND = 'adecco'
MODULE = 'adecco'
def test_adecco_search(self):
l = list(self.backend.search_job(u'valet de chambre'))
......
......@@ -23,7 +23,7 @@ from datetime import datetime
class AgendadulibreTest(BackendTest):
BACKEND = 'agendadulibre'
MODULE = 'agendadulibre'
def test_agendadulibre(self):
l = list(self.backend.list_events(datetime.now()))
......
......@@ -21,7 +21,7 @@ from weboob.tools.test import BackendTest
import re
class AllocineTest(BackendTest):
BACKEND = 'allocine'
MODULE = 'allocine'
def test_search_movie(self):
movies = list(self.backend.iter_movies('spiderman'))
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class AlloRestoTest(BackendTest):
BACKEND = 'alloresto'
MODULE = 'alloresto'
def test_alloresto(self):
l = list(self.backend.iter_accounts())
......
......@@ -21,7 +21,7 @@ from weboob.tools.test import BackendTest
class AllrecipesTest(BackendTest):
BACKEND = 'allrecipes'
MODULE = 'allrecipes'
def test_recipe(self):
recipes = self.backend.iter_recipes('french fries')
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class AmeliTest(BackendTest):
BACKEND = 'ameli'
MODULE = 'ameli'
def test_ameli(self):
for subscription in self.backend.iter_subscription():
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class AmeliProTest(BackendTest):
BACKEND = 'AmeliPro'
MODULE = 'AmeliPro'
def test_AmeliPro(self):
for subscription in self.backend.iter_subscription():
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class AmericanExpressTest(BackendTest):
BACKEND = 'americanexpress'
MODULE = 'americanexpress'
def test_americanexpress(self):
l = list(self.backend.iter_accounts())
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class ApecTest(BackendTest):
BACKEND = 'apec'
MODULE = 'apec'
def test_apec_search(self):
l = list(self.backend.search_job(u'informaticien'))
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class ApivieTest(BackendTest):
BACKEND = 'apivie'
MODULE = 'apivie'
def test_apivie(self):
l = list(self.backend.iter_accounts())
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class ArretSurImagesTest(BackendTest):
BACKEND = 'arretsurimages'
MODULE = 'arretsurimages'
def test_arretsurimages(self):
raise NotImplementedError()
......@@ -23,7 +23,7 @@ from weboob.capabilities.video import BaseVideo
class ArteTest(BackendTest):
BACKEND = 'arte'
MODULE = 'arte'
def test_search(self):
l = list(self.backend.search_videos('a'))
......
......@@ -24,7 +24,7 @@ from random import choice
class AttilasubTest(BackendTest):
BACKEND = 'attilasub'
MODULE = 'attilasub'
def test_subtitle(self):
subtitles = list(self.backend.iter_subtitles('fr', 'spiderman'))
......
......@@ -23,7 +23,7 @@ from weboob.capabilities.radio import Radio
class AudioAddictTest(BackendTest):
BACKEND = 'audioaddict'
MODULE = 'audioaddict'
def test_audioaddict(self):
ls = list(self.backend.iter_resources((Radio, ), []))
......
......@@ -23,7 +23,7 @@ from weboob.tools.browser import BrowserUnavailable
class AuMTest(BackendTest):
BACKEND = 'aum'
MODULE = 'aum'
def test_new_messages(self):
try:
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class AXABanqueTest(BackendTest):
BACKEND = 'axabanque'
MODULE = 'axabanque'
def test_axabanque(self):
l = list(self.backend.iter_accounts())
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class BanqueAccordTest(BackendTest):
BACKEND = 'banqueaccord'
MODULE = 'banqueaccord'
def test_banqueaccord(self):
raise NotImplementedError()
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class BanquePopulaireTest(BackendTest):
BACKEND = 'banquepopulaire'
MODULE = 'banquepopulaire'
def test_banquepop(self):
l = list(self.backend.iter_accounts())
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class BarclaysTest(BackendTest):
BACKEND = 'barclays'
MODULE = 'barclays'
def test_banquepop(self):
l = list(self.backend.iter_accounts())
......
......@@ -21,7 +21,7 @@ from weboob.tools.capabilities.gallery.genericcomicreadertest import GenericComi
class BatotoTest(GenericComicReaderTest):
BACKEND = 'batoto'
MODULE = 'batoto'
def test_download(self):
return self._test_download('26287/yurumates_ch4_by_primitive-scans')
......@@ -23,7 +23,7 @@ from weboob.tools.test import BackendTest, SkipTest
class BiplanTest(BackendTest):
BACKEND = 'biplan'
MODULE = 'biplan'
def test_biplan_list(self):
if datetime.now() > datetime(datetime.now().year, 7, 14) and datetime.now() < datetime(datetime.now().year, 9, 15):
......
......@@ -23,7 +23,7 @@ from random import choice
class BNPorcTest(BackendTest):
BACKEND = 'bnporc'
MODULE = 'bnporc'
def test_bank(self):
l = list(self.backend.iter_accounts())
......
......@@ -23,7 +23,7 @@ from weboob.tools.test import BackendTest
class BoursoramaTest(BackendTest):
BACKEND = 'boursorama'
MODULE = 'boursorama'
def test_boursorama(self):
l = list(self.backend.iter_accounts())
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class BouyguesTest(BackendTest):
BACKEND = 'bouygues'
MODULE = 'bouygues'
def test_bouygues(self):
pass
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class BredTest(BackendTest):
BACKEND = 'bred'
MODULE = 'bred'
def test_bred(self):
l = list(self.backend.iter_accounts())
......
......@@ -7,7 +7,7 @@ from random import choice
class BTDiggTest(BackendTest):
BACKEND = 'btdigg'
MODULE = 'btdigg'
def test_iter_torrents(self):
# try something popular so we sometimes get a magnet-only torrent
......
......@@ -24,7 +24,7 @@ from random import choice
class BtmonTest(BackendTest):
BACKEND = 'btmon'
MODULE = 'btmon'
def test_torrent(self):
torrents = list(self.backend.iter_torrents('spiderman'))
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class CaisseEpargneTest(BackendTest):
BACKEND = 'caissedepargne'
MODULE = 'caissedepargne'
def test_caisse_epargne(self):
l = list(self.backend.iter_accounts())
......
......@@ -23,7 +23,7 @@ from weboob.capabilities.video import BaseVideo
class CanalPlusTest(BackendTest):
BACKEND = 'canalplus'
MODULE = 'canalplus'
def test_canalplus(self):
l = list(self.backend.search_videos(u'guignol'))
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class CanalTPTest(BackendTest):
BACKEND = 'canaltp'
MODULE = 'canaltp'
def test_canaltp(self):
stations = list(self.backend.iter_station_search('defense'))
......
......@@ -14,7 +14,7 @@ from weboob.capabilities.video import BaseVideo
class CappedTest(BackendTest):
BACKEND = 'cappedtv'
MODULE = 'cappedtv'
def test_search(self):
l = list(self.backend.search_videos('kewlers'))
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class CarrefourBanqueTest(BackendTest):
BACKEND = 'carrefourbanque'
MODULE = 'carrefourbanque'
def test_carrefourbanque(self):
l = list(self.backend.iter_accounts())
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class CciTest(BackendTest):
BACKEND = 'cci'
MODULE = 'cci'
def test_cci_search(self):
l = list(self.backend.search_job())
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class ChampslibresTest(BackendTest):
BACKEND = 'champslibres'
MODULE = 'champslibres'
def test_champslibres(self):
pass
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class ChronopostTest(BackendTest):
BACKEND = 'chronopost'
MODULE = 'chronopost'
def test_chronopost(self):
raise NotImplementedError()
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class CICTest(BackendTest):
BACKEND = 'cic'
MODULE = 'cic'
def test_cic(self):
l = list(self.backend.iter_accounts())
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class CitelisTest(BackendTest):
BACKEND = 'citelis'
MODULE = 'citelis'
def test_citelis(self):
l = list(self.backend.iter_accounts())
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class CmsoTest(BackendTest):
BACKEND = 'cmso'
MODULE = 'cmso'
def test_cmso(self):
l = list(self.backend.iter_accounts())
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class CrAgrTest(BackendTest):
BACKEND = 'cragr'
MODULE = 'cragr'
def test_cragr(self):
l = list(self.backend.iter_accounts())
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class CreditCooperatifTest(BackendTest):
BACKEND = 'creditcooperatif'
MODULE = 'creditcooperatif'
def test_creditcoop(self):
l = list(self.backend.iter_accounts())
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class CreditDuNordTest(BackendTest):
BACKEND = 'creditdunord'
MODULE = 'creditdunord'
def test_creditdunord(self):
l = list(self.backend.iter_accounts())
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class CreditMutuelTest(BackendTest):
BACKEND = 'creditmutuel'
MODULE = 'creditmutuel'
def test_crmut(self):
l = list(self.backend.iter_accounts())
......
......@@ -21,7 +21,7 @@ from weboob.tools.test import BackendTest
class CuisineazTest(BackendTest):
BACKEND = 'cuisineaz'
MODULE = 'cuisineaz'
def test_recipe(self):
recipes = self.backend.iter_recipes('fondue')
......
......@@ -25,7 +25,7 @@ from random import choice
class DailymotionTest(BackendTest):
BACKEND = 'dailymotion'
MODULE = 'dailymotion'
# Not easy to find a kids video which will always be there
# This might break in the future
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class DelubacTest(BackendTest):
BACKEND = 'delubac'
MODULE = 'delubac'
def test_delubac(self):
l = list(self.backend.iter_accounts())
......
......@@ -25,7 +25,7 @@ from .browser import DLFP
class DLFPTest(BackendTest):
BACKEND = 'dlfp'
MODULE = 'dlfp'
def __init__(self, *args, **kwargs):
DLFP.DOMAIN = 'alpha.linuxfr.org'
......
......@@ -21,7 +21,7 @@ from weboob.tools.test import BackendTest
class DresdenWetterTest(BackendTest):
BACKEND = 'dresdenwetter'
MODULE = 'dresdenwetter'
def test_gauges_sensors(self):
"""
......
......@@ -21,7 +21,7 @@ from weboob.tools.capabilities.gallery.genericcomicreadertest import GenericComi
class EatmangaTest(GenericComicReaderTest):
BACKEND = 'eatmanga'
MODULE = 'eatmanga'
def test_download(self):
return self._test_download('Glass-Mask/Glass-Mask-Vol-031')
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class EbonicsTest(BackendTest):
BACKEND = 'ebonics'
MODULE = 'ebonics'
def test_translate(self):
self.backend.translate('English', 'Nigger!', 'I like penis.')
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class EdfTest(BackendTest):
BACKEND = 'edf'
MODULE = 'edf'
def test_edf(self):
for subscription in self.backend.iter_subscription():
......
......@@ -23,7 +23,7 @@ from weboob.capabilities.gallery import BaseGallery
class EHentaiTest(BackendTest):
BACKEND = 'ehentai'
MODULE = 'ehentai'
def test_search(self):
l = list(self.backend.search_gallery('lol'))
......
......@@ -24,7 +24,7 @@ from weboob.tools.test import BackendTest
class EuroparlTest(BackendTest):
BACKEND = 'europarl'
MODULE = 'europarl'
# def test_search(self):
# l = list(self.backend.search_videos('neelie kroes'))
......
......@@ -21,7 +21,7 @@ from weboob.tools.test import BackendTest, SkipTest
class FeedlyTest(BackendTest):
BACKEND = 'feedly'
MODULE = 'feedly'
def test_login(self):
if self.backend.browser.username:
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class FortuneoTest(BackendTest):
BACKEND = 'fortuneo'
MODULE = 'fortuneo'
def test_fortuneo(self):
l = list(self.backend.iter_accounts())
......
......@@ -23,7 +23,7 @@ from weboob.tools.test import BackendTest
class FourChanTest(BackendTest):
BACKEND = 'fourchan'
MODULE = 'fourchan'
def test_new_messages(self):
tot = 0
......
......@@ -23,7 +23,7 @@ from weboob.capabilities.video import BaseVideo
class PluzzTest(BackendTest):
BACKEND = 'francetelevisions'
MODULE = 'francetelevisions'
def test_search(self):
# If the test fails, it might be good news!
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class FreeMobileTest(BackendTest):
BACKEND = 'freemobile'
MODULE = 'freemobile'
def test_details(self):
for subscription in self.backend.iter_subscription():
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class GanAssurancesTest(BackendTest):
BACKEND = 'ganassurances'
MODULE = 'ganassurances'
def test_banquepop(self):
l = list(self.backend.iter_accounts())
......
......@@ -21,7 +21,7 @@ from weboob.tools.test import BackendTest
class GazelleTest(BackendTest):
BACKEND = 'gazelle'
MODULE = 'gazelle'
def test_torrent(self):
l = list(self.backend.iter_torrents('sex'))
......
......@@ -24,7 +24,7 @@ from weboob.tools.test import BackendTest
class GDCVaultTest(BackendTest):
BACKEND = 'gdcvault'
MODULE = 'gdcvault'
# def test_search(self):
# l = list(self.backend.search_videos('linux'))
......
......@@ -23,7 +23,7 @@ from weboob.tools.test import BackendTest
class GdfSuezTest(BackendTest):
BACKEND = 'gdfsuez'
MODULE = 'gdfsuez'
def test_gdfsuez(self):
for subscription in self.backend.iter_subscription():
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class GeolocIPTest(BackendTest):
BACKEND = 'geolocip'
MODULE = 'geolocip'
def test_geolocip(self):
self.backend.get_location('88.198.11.130')
......@@ -23,7 +23,7 @@ from weboob.capabilities.bugtracker import Query
class GithubTest(BackendTest):
BACKEND = 'github'
MODULE = 'github'
def test_project(self):
project = self.backend.get_project('github/hubot')
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class GoogleTranslateTest(BackendTest):
BACKEND = 'googletranslate'
MODULE = 'googletranslate'
def test_translate(self):
tr = self.backend.translate('French', 'English', 'je mange du chocolat')
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest, SkipTest
class GroovesharkTest(BackendTest):
BACKEND = 'grooveshark'
MODULE = 'grooveshark'
def test_grooveshark_audio_search(self):
result = list(self.backend.search_audio("Gronibard"))
......
......@@ -22,7 +22,7 @@ from weboob.tools.test import BackendTest
class GroupamaesTest(BackendTest):
BACKEND = 'groupamaes'
MODULE = 'groupamaes'
def test_groupamaes(self):
l = list(self.backend.iter_accounts())
......
......@@ -23,7 +23,7 @@ from uuid import uuid4
class GuerrillamailTest(BackendTest):
BACKEND = 'guerrillamail'
MODULE = 'guerrillamail'