From 3ecb491c1ccbeafefe37dfec41a1428199b07c30 Mon Sep 17 00:00:00 2001 From: Florent Date: Mon, 22 Sep 2014 17:32:03 +0200 Subject: [PATCH] s/BACKEND/MODULE/ --- docs/source/guides/module.rst | 2 +- docs/source/guides/tests.rst | 2 +- modules/750g/test.py | 2 +- modules/adecco/test.py | 2 +- modules/agendadulibre/test.py | 2 +- modules/allocine/test.py | 2 +- modules/alloresto/test.py | 2 +- modules/allrecipes/test.py | 2 +- modules/ameli/test.py | 2 +- modules/amelipro/test.py | 2 +- modules/americanexpress/test.py | 2 +- modules/apec/test.py | 2 +- modules/apivie/test.py | 2 +- modules/arretsurimages/test.py | 2 +- modules/arte/test.py | 2 +- modules/attilasub/test.py | 2 +- modules/audioaddict/test.py | 2 +- modules/aum/test.py | 2 +- modules/axabanque/test.py | 2 +- modules/banqueaccord/test.py | 2 +- modules/banquepopulaire/test.py | 2 +- modules/barclays/test.py | 2 +- modules/batoto/test.py | 2 +- modules/biplan/test.py | 2 +- modules/bnporc/test.py | 2 +- modules/boursorama/test.py | 2 +- modules/bouygues/test.py | 2 +- modules/bred/test.py | 2 +- modules/btdigg/test.py | 2 +- modules/btmon/test.py | 2 +- modules/caissedepargne/test.py | 2 +- modules/canalplus/test.py | 2 +- modules/canaltp/test.py | 2 +- modules/cappedtv/test.py | 2 +- modules/carrefourbanque/test.py | 2 +- modules/cci/test.py | 2 +- modules/champslibres/test.py | 2 +- modules/chronopost/test.py | 2 +- modules/cic/test.py | 2 +- modules/citelis/test.py | 2 +- modules/cmso/test.py | 2 +- modules/cragr/test.py | 2 +- modules/creditcooperatif/test.py | 2 +- modules/creditdunord/test.py | 2 +- modules/creditmutuel/test.py | 2 +- modules/cuisineaz/test.py | 2 +- modules/dailymotion/test.py | 2 +- modules/delubac/test.py | 2 +- modules/dlfp/test.py | 2 +- modules/dresdenwetter/test.py | 2 +- modules/eatmanga/test.py | 2 +- modules/ebonics/test.py | 2 +- modules/edf/test.py | 2 +- modules/ehentai/test.py | 2 +- modules/europarl/test.py | 2 +- modules/feedly/test.py | 2 +- modules/fortuneo/test.py | 2 +- modules/fourchan/test.py | 2 +- modules/francetelevisions/test.py | 2 +- modules/freemobile/test.py | 2 +- modules/ganassurances/test.py | 2 +- modules/gazelle/test.py | 2 +- modules/gdcvault/test.py | 2 +- modules/gdfsuez/test.py | 2 +- modules/geolocip/test.py | 2 +- modules/github/test.py | 2 +- modules/googletranslate/test.py | 2 +- modules/grooveshark/test.py | 2 +- modules/groupamaes/test.py | 2 +- modules/guerrillamail/test.py | 2 +- modules/hds/test.py | 2 +- modules/hellobank/test.py | 2 +- modules/hsbc/test.py | 2 +- modules/hybride/test.py | 2 +- modules/imdb/test.py | 2 +- modules/imgur/test.py | 2 +- modules/ina/test.py | 2 +- modules/indeed/test.py | 2 +- modules/ing/test.py | 2 +- modules/inrocks/test.py | 2 +- modules/ipinfodb/test.py | 2 +- modules/jacquieetmichel/test.py | 2 +- modules/jcvelaux/test.py | 2 +- modules/jvmalin/test.py | 2 +- modules/kickass/test.py | 2 +- modules/lacentrale/test.py | 2 +- modules/lcl/test.py | 2 +- modules/leclercmobile/test.py | 2 +- modules/lefigaro/test.py | 2 +- modules/liberation/test.py | 2 +- modules/lolix/test.py | 2 +- modules/lutim/test.py | 2 +- modules/mailinator/test.py | 2 +- modules/mangafox/test.py | 2 +- modules/mangago/test.py | 2 +- modules/mangahere/test.py | 2 +- modules/mangareader/test.py | 2 +- modules/mareeinfo/test.py | 2 +- modules/marmiton/test.py | 2 +- modules/mediawiki/test.py | 2 +- modules/meteofrance/test.py | 2 +- modules/minutes20/test.py | 2 +- modules/monster/test.py | 2 +- modules/nectarine/test.py | 2 +- modules/nettokom/test.py | 2 +- modules/newsfeed/test.py | 2 +- modules/nihonnooto/test.py | 2 +- modules/nolifetv/test.py | 2 +- modules/nova/test.py | 2 +- modules/opacwebaloes/test.py | 2 +- modules/opensubtitles/test.py | 2 +- modules/ouifm/test.py | 2 +- modules/ovs/test.py | 2 +- modules/pap/test.py | 2 +- modules/pariskiwi/test.py | 2 +- modules/parolesmania/test.py | 2 +- modules/parolesmusique/test.py | 2 +- modules/parolesnet/test.py | 2 +- modules/pastealacon/test.py | 2 +- modules/pastebin/test.py | 2 +- modules/paypal/test.py | 2 +- modules/phpbb/test.py | 2 +- modules/piratebay/test.py | 2 +- modules/pixtoilelibre/test.py | 2 +- modules/podnapisi/test.py | 2 +- modules/poivy/test.py | 2 +- modules/popolemploi/test.py | 2 +- modules/presseurop/test.py | 2 +- modules/prixcarburants/test.py | 2 +- modules/quvi/test.py | 2 +- modules/radiofrance/test.py | 2 +- modules/razibus/test.py | 2 +- modules/regionsjob/test.py | 2 +- modules/sachsen/test.py | 2 +- modules/seeklyrics/test.py | 2 +- modules/seloger/test.py | 2 +- modules/senscritique/test.py | 2 +- modules/sfr/test.py | 2 +- modules/simplyreadit/test.py | 2 +- modules/societegenerale/test.py | 2 +- modules/somafm/test.py | 2 +- modules/sueurdemetal/test.py | 2 +- modules/supertoinette/test.py | 2 +- modules/taz/test.py | 2 +- modules/tinder/test.py | 2 +- modules/transilien/test.py | 2 +- modules/trictractv/test.py | 2 +- modules/tvsubtitles/test.py | 2 +- modules/twitter/test.py | 2 +- modules/unsee/test.py | 2 +- modules/ups/test.py | 2 +- modules/vimeo/test.py | 2 +- modules/vlille/test.py | 2 +- modules/voyagessncf/test.py | 2 +- modules/weather/test.py | 2 +- modules/wellsfargo/test.py | 2 +- modules/wordreference/test.py | 2 +- modules/yahoo/test.py | 2 +- modules/youjizz/test.py | 2 +- modules/youporn/test.py | 2 +- modules/youtube/test.py | 2 +- tools/boilerplate_data/base_test.py | 2 +- tools/boilerplate_data/comic_test.py | 2 +- weboob/tools/test.py | 4 ++-- 164 files changed, 165 insertions(+), 165 deletions(-) diff --git a/docs/source/guides/module.rst b/docs/source/guides/module.rst index 6d9e7b4a95..0f3b9a3b63 100644 --- a/docs/source/guides/module.rst +++ b/docs/source/guides/module.rst @@ -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()) diff --git a/docs/source/guides/tests.rst b/docs/source/guides/tests.rst index 0dcbcf4032..ba0cf66487 100644 --- a/docs/source/guides/tests.rst +++ b/docs/source/guides/tests.rst @@ -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')] diff --git a/modules/750g/test.py b/modules/750g/test.py index 92d40460d9..a37f8b117a 100644 --- a/modules/750g/test.py +++ b/modules/750g/test.py @@ -21,7 +21,7 @@ class SevenFiftyGramsTest(BackendTest): - BACKEND = '750g' + MODULE = '750g' def test_recipe(self): recipes = self.backend.iter_recipes('fondue') diff --git a/modules/adecco/test.py b/modules/adecco/test.py index 9a4a7efe29..0875cad5ee 100644 --- a/modules/adecco/test.py +++ b/modules/adecco/test.py @@ -22,7 +22,7 @@ class AdeccoTest(BackendTest): - BACKEND = 'adecco' + MODULE = 'adecco' def test_adecco_search(self): l = list(self.backend.search_job(u'valet de chambre')) diff --git a/modules/agendadulibre/test.py b/modules/agendadulibre/test.py index ded48c4321..baebd999f6 100644 --- a/modules/agendadulibre/test.py +++ b/modules/agendadulibre/test.py @@ -23,7 +23,7 @@ class AgendadulibreTest(BackendTest): - BACKEND = 'agendadulibre' + MODULE = 'agendadulibre' def test_agendadulibre(self): l = list(self.backend.list_events(datetime.now())) diff --git a/modules/allocine/test.py b/modules/allocine/test.py index 743e5a9071..bde18710be 100644 --- a/modules/allocine/test.py +++ b/modules/allocine/test.py @@ -21,7 +21,7 @@ import re class AllocineTest(BackendTest): - BACKEND = 'allocine' + MODULE = 'allocine' def test_search_movie(self): movies = list(self.backend.iter_movies('spiderman')) diff --git a/modules/alloresto/test.py b/modules/alloresto/test.py index 4fc0f83771..a31ea0d08b 100644 --- a/modules/alloresto/test.py +++ b/modules/alloresto/test.py @@ -22,7 +22,7 @@ class AlloRestoTest(BackendTest): - BACKEND = 'alloresto' + MODULE = 'alloresto' def test_alloresto(self): l = list(self.backend.iter_accounts()) diff --git a/modules/allrecipes/test.py b/modules/allrecipes/test.py index 4f0a33578b..799098769d 100644 --- a/modules/allrecipes/test.py +++ b/modules/allrecipes/test.py @@ -21,7 +21,7 @@ class AllrecipesTest(BackendTest): - BACKEND = 'allrecipes' + MODULE = 'allrecipes' def test_recipe(self): recipes = self.backend.iter_recipes('french fries') diff --git a/modules/ameli/test.py b/modules/ameli/test.py index 033d514b67..7b08ee8405 100644 --- a/modules/ameli/test.py +++ b/modules/ameli/test.py @@ -22,7 +22,7 @@ class AmeliTest(BackendTest): - BACKEND = 'ameli' + MODULE = 'ameli' def test_ameli(self): for subscription in self.backend.iter_subscription(): diff --git a/modules/amelipro/test.py b/modules/amelipro/test.py index c2d1538777..9b2bdccf06 100644 --- a/modules/amelipro/test.py +++ b/modules/amelipro/test.py @@ -22,7 +22,7 @@ class AmeliProTest(BackendTest): - BACKEND = 'AmeliPro' + MODULE = 'AmeliPro' def test_AmeliPro(self): for subscription in self.backend.iter_subscription(): diff --git a/modules/americanexpress/test.py b/modules/americanexpress/test.py index 1bf927e0df..77a38a6a6e 100644 --- a/modules/americanexpress/test.py +++ b/modules/americanexpress/test.py @@ -22,7 +22,7 @@ class AmericanExpressTest(BackendTest): - BACKEND = 'americanexpress' + MODULE = 'americanexpress' def test_americanexpress(self): l = list(self.backend.iter_accounts()) diff --git a/modules/apec/test.py b/modules/apec/test.py index 7bc5a59d78..87e94b7a8e 100644 --- a/modules/apec/test.py +++ b/modules/apec/test.py @@ -22,7 +22,7 @@ class ApecTest(BackendTest): - BACKEND = 'apec' + MODULE = 'apec' def test_apec_search(self): l = list(self.backend.search_job(u'informaticien')) diff --git a/modules/apivie/test.py b/modules/apivie/test.py index 249801e566..ce03e70ca9 100644 --- a/modules/apivie/test.py +++ b/modules/apivie/test.py @@ -22,7 +22,7 @@ class ApivieTest(BackendTest): - BACKEND = 'apivie' + MODULE = 'apivie' def test_apivie(self): l = list(self.backend.iter_accounts()) diff --git a/modules/arretsurimages/test.py b/modules/arretsurimages/test.py index 79dc282584..9cd08e0357 100644 --- a/modules/arretsurimages/test.py +++ b/modules/arretsurimages/test.py @@ -22,7 +22,7 @@ class ArretSurImagesTest(BackendTest): - BACKEND = 'arretsurimages' + MODULE = 'arretsurimages' def test_arretsurimages(self): raise NotImplementedError() diff --git a/modules/arte/test.py b/modules/arte/test.py index b9aaa78cff..4e699071f1 100644 --- a/modules/arte/test.py +++ b/modules/arte/test.py @@ -23,7 +23,7 @@ class ArteTest(BackendTest): - BACKEND = 'arte' + MODULE = 'arte' def test_search(self): l = list(self.backend.search_videos('a')) diff --git a/modules/attilasub/test.py b/modules/attilasub/test.py index 2f3eb6ef1c..2d720f5f3d 100644 --- a/modules/attilasub/test.py +++ b/modules/attilasub/test.py @@ -24,7 +24,7 @@ class AttilasubTest(BackendTest): - BACKEND = 'attilasub' + MODULE = 'attilasub' def test_subtitle(self): subtitles = list(self.backend.iter_subtitles('fr', 'spiderman')) diff --git a/modules/audioaddict/test.py b/modules/audioaddict/test.py index 2d16c96660..6b8eee0ff5 100644 --- a/modules/audioaddict/test.py +++ b/modules/audioaddict/test.py @@ -23,7 +23,7 @@ class AudioAddictTest(BackendTest): - BACKEND = 'audioaddict' + MODULE = 'audioaddict' def test_audioaddict(self): ls = list(self.backend.iter_resources((Radio, ), [])) diff --git a/modules/aum/test.py b/modules/aum/test.py index e697a716ae..10bb4415fb 100644 --- a/modules/aum/test.py +++ b/modules/aum/test.py @@ -23,7 +23,7 @@ class AuMTest(BackendTest): - BACKEND = 'aum' + MODULE = 'aum' def test_new_messages(self): try: diff --git a/modules/axabanque/test.py b/modules/axabanque/test.py index 8853c50616..deb00e3635 100644 --- a/modules/axabanque/test.py +++ b/modules/axabanque/test.py @@ -22,7 +22,7 @@ class AXABanqueTest(BackendTest): - BACKEND = 'axabanque' + MODULE = 'axabanque' def test_axabanque(self): l = list(self.backend.iter_accounts()) diff --git a/modules/banqueaccord/test.py b/modules/banqueaccord/test.py index fd502aab14..a02cf9e855 100644 --- a/modules/banqueaccord/test.py +++ b/modules/banqueaccord/test.py @@ -22,7 +22,7 @@ class BanqueAccordTest(BackendTest): - BACKEND = 'banqueaccord' + MODULE = 'banqueaccord' def test_banqueaccord(self): raise NotImplementedError() diff --git a/modules/banquepopulaire/test.py b/modules/banquepopulaire/test.py index 08aabe2150..5d1489a31f 100644 --- a/modules/banquepopulaire/test.py +++ b/modules/banquepopulaire/test.py @@ -22,7 +22,7 @@ class BanquePopulaireTest(BackendTest): - BACKEND = 'banquepopulaire' + MODULE = 'banquepopulaire' def test_banquepop(self): l = list(self.backend.iter_accounts()) diff --git a/modules/barclays/test.py b/modules/barclays/test.py index 3c9519095e..21f0f80482 100644 --- a/modules/barclays/test.py +++ b/modules/barclays/test.py @@ -22,7 +22,7 @@ class BarclaysTest(BackendTest): - BACKEND = 'barclays' + MODULE = 'barclays' def test_banquepop(self): l = list(self.backend.iter_accounts()) diff --git a/modules/batoto/test.py b/modules/batoto/test.py index 46db6590d0..f44799c517 100644 --- a/modules/batoto/test.py +++ b/modules/batoto/test.py @@ -21,7 +21,7 @@ class BatotoTest(GenericComicReaderTest): - BACKEND = 'batoto' + MODULE = 'batoto' def test_download(self): return self._test_download('26287/yurumates_ch4_by_primitive-scans') diff --git a/modules/biplan/test.py b/modules/biplan/test.py index 8c4507143a..61845ef5c8 100644 --- a/modules/biplan/test.py +++ b/modules/biplan/test.py @@ -23,7 +23,7 @@ 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): diff --git a/modules/bnporc/test.py b/modules/bnporc/test.py index 7c965ec40b..de938cdc8f 100644 --- a/modules/bnporc/test.py +++ b/modules/bnporc/test.py @@ -23,7 +23,7 @@ class BNPorcTest(BackendTest): - BACKEND = 'bnporc' + MODULE = 'bnporc' def test_bank(self): l = list(self.backend.iter_accounts()) diff --git a/modules/boursorama/test.py b/modules/boursorama/test.py index 40e2ad26b9..e49d291863 100644 --- a/modules/boursorama/test.py +++ b/modules/boursorama/test.py @@ -23,7 +23,7 @@ class BoursoramaTest(BackendTest): - BACKEND = 'boursorama' + MODULE = 'boursorama' def test_boursorama(self): l = list(self.backend.iter_accounts()) diff --git a/modules/bouygues/test.py b/modules/bouygues/test.py index 511554fcd8..28e52ee2ba 100644 --- a/modules/bouygues/test.py +++ b/modules/bouygues/test.py @@ -22,7 +22,7 @@ class BouyguesTest(BackendTest): - BACKEND = 'bouygues' + MODULE = 'bouygues' def test_bouygues(self): pass diff --git a/modules/bred/test.py b/modules/bred/test.py index 105901a782..6e94d20586 100644 --- a/modules/bred/test.py +++ b/modules/bred/test.py @@ -22,7 +22,7 @@ class BredTest(BackendTest): - BACKEND = 'bred' + MODULE = 'bred' def test_bred(self): l = list(self.backend.iter_accounts()) diff --git a/modules/btdigg/test.py b/modules/btdigg/test.py index 8d6fb9e775..c47289d5fe 100644 --- a/modules/btdigg/test.py +++ b/modules/btdigg/test.py @@ -7,7 +7,7 @@ class BTDiggTest(BackendTest): - BACKEND = 'btdigg' + MODULE = 'btdigg' def test_iter_torrents(self): # try something popular so we sometimes get a magnet-only torrent diff --git a/modules/btmon/test.py b/modules/btmon/test.py index bc356ae562..aef734488e 100644 --- a/modules/btmon/test.py +++ b/modules/btmon/test.py @@ -24,7 +24,7 @@ class BtmonTest(BackendTest): - BACKEND = 'btmon' + MODULE = 'btmon' def test_torrent(self): torrents = list(self.backend.iter_torrents('spiderman')) diff --git a/modules/caissedepargne/test.py b/modules/caissedepargne/test.py index 8b489abe37..280e87e5b9 100644 --- a/modules/caissedepargne/test.py +++ b/modules/caissedepargne/test.py @@ -22,7 +22,7 @@ class CaisseEpargneTest(BackendTest): - BACKEND = 'caissedepargne' + MODULE = 'caissedepargne' def test_caisse_epargne(self): l = list(self.backend.iter_accounts()) diff --git a/modules/canalplus/test.py b/modules/canalplus/test.py index 41b76cc9a7..2ea5d66d28 100644 --- a/modules/canalplus/test.py +++ b/modules/canalplus/test.py @@ -23,7 +23,7 @@ class CanalPlusTest(BackendTest): - BACKEND = 'canalplus' + MODULE = 'canalplus' def test_canalplus(self): l = list(self.backend.search_videos(u'guignol')) diff --git a/modules/canaltp/test.py b/modules/canaltp/test.py index 5207b31906..b5d191c8b9 100644 --- a/modules/canaltp/test.py +++ b/modules/canaltp/test.py @@ -22,7 +22,7 @@ class CanalTPTest(BackendTest): - BACKEND = 'canaltp' + MODULE = 'canaltp' def test_canaltp(self): stations = list(self.backend.iter_station_search('defense')) diff --git a/modules/cappedtv/test.py b/modules/cappedtv/test.py index 16e8017a4a..5215249707 100644 --- a/modules/cappedtv/test.py +++ b/modules/cappedtv/test.py @@ -14,7 +14,7 @@ class CappedTest(BackendTest): - BACKEND = 'cappedtv' + MODULE = 'cappedtv' def test_search(self): l = list(self.backend.search_videos('kewlers')) diff --git a/modules/carrefourbanque/test.py b/modules/carrefourbanque/test.py index e67a3da76c..de9311148a 100644 --- a/modules/carrefourbanque/test.py +++ b/modules/carrefourbanque/test.py @@ -22,7 +22,7 @@ class CarrefourBanqueTest(BackendTest): - BACKEND = 'carrefourbanque' + MODULE = 'carrefourbanque' def test_carrefourbanque(self): l = list(self.backend.iter_accounts()) diff --git a/modules/cci/test.py b/modules/cci/test.py index 806bc6e747..38cd92419b 100644 --- a/modules/cci/test.py +++ b/modules/cci/test.py @@ -22,7 +22,7 @@ class CciTest(BackendTest): - BACKEND = 'cci' + MODULE = 'cci' def test_cci_search(self): l = list(self.backend.search_job()) diff --git a/modules/champslibres/test.py b/modules/champslibres/test.py index a79174b026..8f901f1801 100644 --- a/modules/champslibres/test.py +++ b/modules/champslibres/test.py @@ -22,7 +22,7 @@ class ChampslibresTest(BackendTest): - BACKEND = 'champslibres' + MODULE = 'champslibres' def test_champslibres(self): pass diff --git a/modules/chronopost/test.py b/modules/chronopost/test.py index dd57db627c..0d5fd4b23f 100644 --- a/modules/chronopost/test.py +++ b/modules/chronopost/test.py @@ -22,7 +22,7 @@ class ChronopostTest(BackendTest): - BACKEND = 'chronopost' + MODULE = 'chronopost' def test_chronopost(self): raise NotImplementedError() diff --git a/modules/cic/test.py b/modules/cic/test.py index 50b96311df..6c71166d5f 100644 --- a/modules/cic/test.py +++ b/modules/cic/test.py @@ -22,7 +22,7 @@ class CICTest(BackendTest): - BACKEND = 'cic' + MODULE = 'cic' def test_cic(self): l = list(self.backend.iter_accounts()) diff --git a/modules/citelis/test.py b/modules/citelis/test.py index 4d5554b2ea..d386885fae 100644 --- a/modules/citelis/test.py +++ b/modules/citelis/test.py @@ -22,7 +22,7 @@ class CitelisTest(BackendTest): - BACKEND = 'citelis' + MODULE = 'citelis' def test_citelis(self): l = list(self.backend.iter_accounts()) diff --git a/modules/cmso/test.py b/modules/cmso/test.py index 86456875be..4b09c7abd1 100644 --- a/modules/cmso/test.py +++ b/modules/cmso/test.py @@ -22,7 +22,7 @@ class CmsoTest(BackendTest): - BACKEND = 'cmso' + MODULE = 'cmso' def test_cmso(self): l = list(self.backend.iter_accounts()) diff --git a/modules/cragr/test.py b/modules/cragr/test.py index 58424d1789..64a05d8510 100644 --- a/modules/cragr/test.py +++ b/modules/cragr/test.py @@ -22,7 +22,7 @@ class CrAgrTest(BackendTest): - BACKEND = 'cragr' + MODULE = 'cragr' def test_cragr(self): l = list(self.backend.iter_accounts()) diff --git a/modules/creditcooperatif/test.py b/modules/creditcooperatif/test.py index 39bd5d212b..7f454f5a8c 100644 --- a/modules/creditcooperatif/test.py +++ b/modules/creditcooperatif/test.py @@ -22,7 +22,7 @@ class CreditCooperatifTest(BackendTest): - BACKEND = 'creditcooperatif' + MODULE = 'creditcooperatif' def test_creditcoop(self): l = list(self.backend.iter_accounts()) diff --git a/modules/creditdunord/test.py b/modules/creditdunord/test.py index d23db48f83..c3ac16ba8b 100644 --- a/modules/creditdunord/test.py +++ b/modules/creditdunord/test.py @@ -22,7 +22,7 @@ class CreditDuNordTest(BackendTest): - BACKEND = 'creditdunord' + MODULE = 'creditdunord' def test_creditdunord(self): l = list(self.backend.iter_accounts()) diff --git a/modules/creditmutuel/test.py b/modules/creditmutuel/test.py index b152b39e63..73d3c69284 100644 --- a/modules/creditmutuel/test.py +++ b/modules/creditmutuel/test.py @@ -22,7 +22,7 @@ class CreditMutuelTest(BackendTest): - BACKEND = 'creditmutuel' + MODULE = 'creditmutuel' def test_crmut(self): l = list(self.backend.iter_accounts()) diff --git a/modules/cuisineaz/test.py b/modules/cuisineaz/test.py index 7257c4eaad..f8e1277470 100644 --- a/modules/cuisineaz/test.py +++ b/modules/cuisineaz/test.py @@ -21,7 +21,7 @@ class CuisineazTest(BackendTest): - BACKEND = 'cuisineaz' + MODULE = 'cuisineaz' def test_recipe(self): recipes = self.backend.iter_recipes('fondue') diff --git a/modules/dailymotion/test.py b/modules/dailymotion/test.py index 6b90818b24..835c5895ef 100644 --- a/modules/dailymotion/test.py +++ b/modules/dailymotion/test.py @@ -25,7 +25,7 @@ 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 diff --git a/modules/delubac/test.py b/modules/delubac/test.py index 4caa804dfb..e838b727ca 100644 --- a/modules/delubac/test.py +++ b/modules/delubac/test.py @@ -22,7 +22,7 @@ class DelubacTest(BackendTest): - BACKEND = 'delubac' + MODULE = 'delubac' def test_delubac(self): l = list(self.backend.iter_accounts()) diff --git a/modules/dlfp/test.py b/modules/dlfp/test.py index ba121f9aca..82042d4638 100644 --- a/modules/dlfp/test.py +++ b/modules/dlfp/test.py @@ -25,7 +25,7 @@ class DLFPTest(BackendTest): - BACKEND = 'dlfp' + MODULE = 'dlfp' def __init__(self, *args, **kwargs): DLFP.DOMAIN = 'alpha.linuxfr.org' diff --git a/modules/dresdenwetter/test.py b/modules/dresdenwetter/test.py index b8b2490dcd..1f3a6b1274 100644 --- a/modules/dresdenwetter/test.py +++ b/modules/dresdenwetter/test.py @@ -21,7 +21,7 @@ class DresdenWetterTest(BackendTest): - BACKEND = 'dresdenwetter' + MODULE = 'dresdenwetter' def test_gauges_sensors(self): """ diff --git a/modules/eatmanga/test.py b/modules/eatmanga/test.py index 93e0d04730..3b48208031 100644 --- a/modules/eatmanga/test.py +++ b/modules/eatmanga/test.py @@ -21,7 +21,7 @@ class EatmangaTest(GenericComicReaderTest): - BACKEND = 'eatmanga' + MODULE = 'eatmanga' def test_download(self): return self._test_download('Glass-Mask/Glass-Mask-Vol-031') diff --git a/modules/ebonics/test.py b/modules/ebonics/test.py index d1b93b3179..cf8ee3f32d 100644 --- a/modules/ebonics/test.py +++ b/modules/ebonics/test.py @@ -22,7 +22,7 @@ class EbonicsTest(BackendTest): - BACKEND = 'ebonics' + MODULE = 'ebonics' def test_translate(self): self.backend.translate('English', 'Nigger!', 'I like penis.') diff --git a/modules/edf/test.py b/modules/edf/test.py index 29fac76f42..40b199763b 100644 --- a/modules/edf/test.py +++ b/modules/edf/test.py @@ -22,7 +22,7 @@ class EdfTest(BackendTest): - BACKEND = 'edf' + MODULE = 'edf' def test_edf(self): for subscription in self.backend.iter_subscription(): diff --git a/modules/ehentai/test.py b/modules/ehentai/test.py index 15979d4bfa..cd3e43aa0b 100644 --- a/modules/ehentai/test.py +++ b/modules/ehentai/test.py @@ -23,7 +23,7 @@ class EHentaiTest(BackendTest): - BACKEND = 'ehentai' + MODULE = 'ehentai' def test_search(self): l = list(self.backend.search_gallery('lol')) diff --git a/modules/europarl/test.py b/modules/europarl/test.py index aa0c6dec66..6333e07b98 100644 --- a/modules/europarl/test.py +++ b/modules/europarl/test.py @@ -24,7 +24,7 @@ class EuroparlTest(BackendTest): - BACKEND = 'europarl' + MODULE = 'europarl' # def test_search(self): # l = list(self.backend.search_videos('neelie kroes')) diff --git a/modules/feedly/test.py b/modules/feedly/test.py index 1e81f7481e..20841fce5a 100644 --- a/modules/feedly/test.py +++ b/modules/feedly/test.py @@ -21,7 +21,7 @@ class FeedlyTest(BackendTest): - BACKEND = 'feedly' + MODULE = 'feedly' def test_login(self): if self.backend.browser.username: diff --git a/modules/fortuneo/test.py b/modules/fortuneo/test.py index 04dcd6557b..4e83c1c616 100644 --- a/modules/fortuneo/test.py +++ b/modules/fortuneo/test.py @@ -22,7 +22,7 @@ class FortuneoTest(BackendTest): - BACKEND = 'fortuneo' + MODULE = 'fortuneo' def test_fortuneo(self): l = list(self.backend.iter_accounts()) diff --git a/modules/fourchan/test.py b/modules/fourchan/test.py index c60e97b98e..f843699756 100644 --- a/modules/fourchan/test.py +++ b/modules/fourchan/test.py @@ -23,7 +23,7 @@ class FourChanTest(BackendTest): - BACKEND = 'fourchan' + MODULE = 'fourchan' def test_new_messages(self): tot = 0 diff --git a/modules/francetelevisions/test.py b/modules/francetelevisions/test.py index 9be9483613..568d770b77 100644 --- a/modules/francetelevisions/test.py +++ b/modules/francetelevisions/test.py @@ -23,7 +23,7 @@ class PluzzTest(BackendTest): - BACKEND = 'francetelevisions' + MODULE = 'francetelevisions' def test_search(self): # If the test fails, it might be good news! diff --git a/modules/freemobile/test.py b/modules/freemobile/test.py index f6c25c32bb..7243a7b95b 100644 --- a/modules/freemobile/test.py +++ b/modules/freemobile/test.py @@ -22,7 +22,7 @@ class FreeMobileTest(BackendTest): - BACKEND = 'freemobile' + MODULE = 'freemobile' def test_details(self): for subscription in self.backend.iter_subscription(): diff --git a/modules/ganassurances/test.py b/modules/ganassurances/test.py index cd6c65eff4..3cc9830a7d 100644 --- a/modules/ganassurances/test.py +++ b/modules/ganassurances/test.py @@ -22,7 +22,7 @@ class GanAssurancesTest(BackendTest): - BACKEND = 'ganassurances' + MODULE = 'ganassurances' def test_banquepop(self): l = list(self.backend.iter_accounts()) diff --git a/modules/gazelle/test.py b/modules/gazelle/test.py index b12b9d0d9c..aaad1449f0 100644 --- a/modules/gazelle/test.py +++ b/modules/gazelle/test.py @@ -21,7 +21,7 @@ class GazelleTest(BackendTest): - BACKEND = 'gazelle' + MODULE = 'gazelle' def test_torrent(self): l = list(self.backend.iter_torrents('sex')) diff --git a/modules/gdcvault/test.py b/modules/gdcvault/test.py index 5429044815..68125d8d86 100644 --- a/modules/gdcvault/test.py +++ b/modules/gdcvault/test.py @@ -24,7 +24,7 @@ class GDCVaultTest(BackendTest): - BACKEND = 'gdcvault' + MODULE = 'gdcvault' # def test_search(self): # l = list(self.backend.search_videos('linux')) diff --git a/modules/gdfsuez/test.py b/modules/gdfsuez/test.py index a3e0b0c35a..0d537c62cb 100644 --- a/modules/gdfsuez/test.py +++ b/modules/gdfsuez/test.py @@ -23,7 +23,7 @@ class GdfSuezTest(BackendTest): - BACKEND = 'gdfsuez' + MODULE = 'gdfsuez' def test_gdfsuez(self): for subscription in self.backend.iter_subscription(): diff --git a/modules/geolocip/test.py b/modules/geolocip/test.py index d1f88c2332..b62dd31e92 100644 --- a/modules/geolocip/test.py +++ b/modules/geolocip/test.py @@ -22,7 +22,7 @@ class GeolocIPTest(BackendTest): - BACKEND = 'geolocip' + MODULE = 'geolocip' def test_geolocip(self): self.backend.get_location('88.198.11.130') diff --git a/modules/github/test.py b/modules/github/test.py index bcb8f73bd9..ff6184d8b2 100644 --- a/modules/github/test.py +++ b/modules/github/test.py @@ -23,7 +23,7 @@ class GithubTest(BackendTest): - BACKEND = 'github' + MODULE = 'github' def test_project(self): project = self.backend.get_project('github/hubot') diff --git a/modules/googletranslate/test.py b/modules/googletranslate/test.py index 86e4238d82..22145fff2e 100644 --- a/modules/googletranslate/test.py +++ b/modules/googletranslate/test.py @@ -22,7 +22,7 @@ class GoogleTranslateTest(BackendTest): - BACKEND = 'googletranslate' + MODULE = 'googletranslate' def test_translate(self): tr = self.backend.translate('French', 'English', 'je mange du chocolat') diff --git a/modules/grooveshark/test.py b/modules/grooveshark/test.py index 2809f8ffe0..c92b89b999 100644 --- a/modules/grooveshark/test.py +++ b/modules/grooveshark/test.py @@ -22,7 +22,7 @@ class GroovesharkTest(BackendTest): - BACKEND = 'grooveshark' + MODULE = 'grooveshark' def test_grooveshark_audio_search(self): result = list(self.backend.search_audio("Gronibard")) diff --git a/modules/groupamaes/test.py b/modules/groupamaes/test.py index 10310d4bb5..721c1ab33c 100644 --- a/modules/groupamaes/test.py +++ b/modules/groupamaes/test.py @@ -22,7 +22,7 @@ class GroupamaesTest(BackendTest): - BACKEND = 'groupamaes' + MODULE = 'groupamaes' def test_groupamaes(self): l = list(self.backend.iter_accounts()) diff --git a/modules/guerrillamail/test.py b/modules/guerrillamail/test.py index 7735d6bee9..64b41192f2 100644 --- a/modules/guerrillamail/test.py +++ b/modules/guerrillamail/test.py @@ -23,7 +23,7 @@ class GuerrillamailTest(BackendTest): - BACKEND = 'guerrillamail' + MODULE = 'guerrillamail' def test_guerrillamail(self): box = uuid4() diff --git a/modules/hds/test.py b/modules/hds/test.py index 1d941e03d3..9caf7a9505 100644 --- a/modules/hds/test.py +++ b/modules/hds/test.py @@ -23,7 +23,7 @@ class HDSTest(BackendTest): - BACKEND = 'hds' + MODULE = 'hds' def test_new_messages(self): for message in limit(self.backend.iter_unread_messages(), 10): diff --git a/modules/hellobank/test.py b/modules/hellobank/test.py index 3e191316a6..d4daf1f2fc 100644 --- a/modules/hellobank/test.py +++ b/modules/hellobank/test.py @@ -23,7 +23,7 @@ class HelloBankTest(BackendTest): - BACKEND = 'hellobank' + MODULE = 'hellobank' def test_bank(self): l = list(self.backend.iter_accounts()) diff --git a/modules/hsbc/test.py b/modules/hsbc/test.py index ea59dd2fb0..93d5a96e9e 100644 --- a/modules/hsbc/test.py +++ b/modules/hsbc/test.py @@ -22,7 +22,7 @@ class HSBCTest(BackendTest): - BACKEND = 'hsbc' + MODULE = 'hsbc' def test_hsbc(self): l = list(self.backend.iter_accounts()) diff --git a/modules/hybride/test.py b/modules/hybride/test.py index d453b5da80..e7593b0801 100644 --- a/modules/hybride/test.py +++ b/modules/hybride/test.py @@ -23,7 +23,7 @@ class HybrideTest(BackendTest): - BACKEND = 'hybride' + MODULE = 'hybride' def test_hybride_list(self): if datetime.now() > datetime(datetime.now().year, 6, 30) and datetime.now() < datetime(datetime.now().year, 9, 15): diff --git a/modules/imdb/test.py b/modules/imdb/test.py index a2b94fa3d4..8c08955a47 100644 --- a/modules/imdb/test.py +++ b/modules/imdb/test.py @@ -21,7 +21,7 @@ class ImdbTest(BackendTest): - BACKEND = 'imdb' + MODULE = 'imdb' def test_search_movie(self): movies = list(self.backend.iter_movies('spiderman')) diff --git a/modules/imgur/test.py b/modules/imgur/test.py index be1ae49264..2467cef7ff 100644 --- a/modules/imgur/test.py +++ b/modules/imgur/test.py @@ -22,7 +22,7 @@ class ImgurTest(BackendTest): - BACKEND = 'imgur' + MODULE = 'imgur' # small gif file DATA = 'R0lGODlhAQABAIAAAP///wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==\n' diff --git a/modules/ina/test.py b/modules/ina/test.py index abc25a0afd..698f4f9c07 100644 --- a/modules/ina/test.py +++ b/modules/ina/test.py @@ -22,7 +22,7 @@ class INATest(BackendTest): - BACKEND = 'ina' + MODULE = 'ina' def test_ina(self): l = list(self.backend.search_videos('chirac')) diff --git a/modules/indeed/test.py b/modules/indeed/test.py index 320133c156..b38057f2e8 100644 --- a/modules/indeed/test.py +++ b/modules/indeed/test.py @@ -22,7 +22,7 @@ class IndeedTest(BackendTest): - BACKEND = 'indeed' + MODULE = 'indeed' def test_indeed_search(self): l = list(self.backend.search_job('informaticien')) diff --git a/modules/ing/test.py b/modules/ing/test.py index a439a8f7a9..2b8e9f653f 100644 --- a/modules/ing/test.py +++ b/modules/ing/test.py @@ -25,7 +25,7 @@ class INGTest(BackendTest): - BACKEND = 'ing' + MODULE = 'ing' def test_accounts(self): l = list(self.backend.iter_accounts()) diff --git a/modules/inrocks/test.py b/modules/inrocks/test.py index 939b15b896..a8fa3ac7ee 100644 --- a/modules/inrocks/test.py +++ b/modules/inrocks/test.py @@ -22,7 +22,7 @@ class InrocksTest(BackendTest): - BACKEND = 'inrocks' + MODULE = 'inrocks' def test_new_messages(self): for message in self.backend.iter_unread_messages(): diff --git a/modules/ipinfodb/test.py b/modules/ipinfodb/test.py index 8d0d16d8b2..86788a347a 100644 --- a/modules/ipinfodb/test.py +++ b/modules/ipinfodb/test.py @@ -22,7 +22,7 @@ class IpinfodbTest(BackendTest): - BACKEND = 'ipinfodb' + MODULE = 'ipinfodb' def test_ipinfobd(self): self.backend.get_location('88.198.11.130') diff --git a/modules/jacquieetmichel/test.py b/modules/jacquieetmichel/test.py index cc3162c059..9e3b3ee534 100644 --- a/modules/jacquieetmichel/test.py +++ b/modules/jacquieetmichel/test.py @@ -23,7 +23,7 @@ class JacquieEtMichelTest(BackendTest): - BACKEND = 'jacquieetmichel' + MODULE = 'jacquieetmichel' def test_search(self): self.assertTrue(len(list(self.backend.search_videos('anus', nsfw=False))) == 0) diff --git a/modules/jcvelaux/test.py b/modules/jcvelaux/test.py index 52a6727ced..406fe7a257 100644 --- a/modules/jcvelaux/test.py +++ b/modules/jcvelaux/test.py @@ -21,7 +21,7 @@ class VelibTest(BackendTest): - BACKEND = 'jcvelaux' + MODULE = 'jcvelaux' def test_velib(self): l = list(self.backend.iter_gauges()) diff --git a/modules/jvmalin/test.py b/modules/jvmalin/test.py index 43c6930288..b0b954ac75 100644 --- a/modules/jvmalin/test.py +++ b/modules/jvmalin/test.py @@ -24,7 +24,7 @@ class JVMalinTest(BackendTest): - BACKEND = 'jvmalin' + MODULE = 'jvmalin' def test_roadmap_cities(self): filters = RoadmapFilters() diff --git a/modules/kickass/test.py b/modules/kickass/test.py index 87a3ed1e13..80be0200a7 100644 --- a/modules/kickass/test.py +++ b/modules/kickass/test.py @@ -25,7 +25,7 @@ class KickassTest(BackendTest): - BACKEND = 'kickass' + MODULE = 'kickass' def test_torrent(self): torrents = list(self.backend.iter_torrents('debian')) diff --git a/modules/lacentrale/test.py b/modules/lacentrale/test.py index 9227d9c1b0..56cef567aa 100644 --- a/modules/lacentrale/test.py +++ b/modules/lacentrale/test.py @@ -22,7 +22,7 @@ class LaCentraleTest(BackendTest): - BACKEND = 'lacentrale' + MODULE = 'lacentrale' def test_lacentrale(self): products = list(self.backend.search_products('1000€,pro')) diff --git a/modules/lcl/test.py b/modules/lcl/test.py index 1c354019df..1621917fc5 100644 --- a/modules/lcl/test.py +++ b/modules/lcl/test.py @@ -22,7 +22,7 @@ class LCLtTest(BackendTest): - BACKEND = 'lcl' + MODULE = 'lcl' def test_lcl(self): list(self.backend.iter_accounts()) diff --git a/modules/leclercmobile/test.py b/modules/leclercmobile/test.py index 1982805fb3..de0296f121 100644 --- a/modules/leclercmobile/test.py +++ b/modules/leclercmobile/test.py @@ -22,7 +22,7 @@ class LeclercMobileTest(BackendTest): - BACKEND = 'leclercmobile' + MODULE = 'leclercmobile' def test_list(self): """ diff --git a/modules/lefigaro/test.py b/modules/lefigaro/test.py index d1f4808ce4..85275dcb20 100644 --- a/modules/lefigaro/test.py +++ b/modules/lefigaro/test.py @@ -23,7 +23,7 @@ class LeFigaroTest(BackendTest): - BACKEND = 'lefigaro' + MODULE = 'lefigaro' def test_lefigaro(self): l = list(self.backend.iter_threads()) diff --git a/modules/liberation/test.py b/modules/liberation/test.py index b86de9c59d..a8319a2f3c 100644 --- a/modules/liberation/test.py +++ b/modules/liberation/test.py @@ -22,7 +22,7 @@ class LiberationTest(BackendTest): - BACKEND = 'liberation' + MODULE = 'liberation' def test_new_messages(self): for message in self.backend.iter_unread_messages(): diff --git a/modules/lolix/test.py b/modules/lolix/test.py index ff75d0ab29..ac0576e466 100644 --- a/modules/lolix/test.py +++ b/modules/lolix/test.py @@ -22,7 +22,7 @@ class LolixTest(BackendTest): - BACKEND = 'lolix' + MODULE = 'lolix' def test_lolix_advanced_search(self): l = list(self.backend.advanced_search_job()) diff --git a/modules/lutim/test.py b/modules/lutim/test.py index eb224e9c40..8e72916742 100644 --- a/modules/lutim/test.py +++ b/modules/lutim/test.py @@ -22,7 +22,7 @@ class LutimTest(BackendTest): - BACKEND = 'lutim' + MODULE = 'lutim' # small gif file DATA = 'R0lGODlhAQABAIAAAP///wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==\n' diff --git a/modules/mailinator/test.py b/modules/mailinator/test.py index a8c2079a37..51d38209d7 100644 --- a/modules/mailinator/test.py +++ b/modules/mailinator/test.py @@ -22,7 +22,7 @@ class MailinatorTest(BackendTest): - BACKEND = 'mailinator' + MODULE = 'mailinator' def test_mailinator(self): t = self.backend.get_thread('qwerty') diff --git a/modules/mangafox/test.py b/modules/mangafox/test.py index 828eaa1c7a..02a749db7a 100644 --- a/modules/mangafox/test.py +++ b/modules/mangafox/test.py @@ -22,7 +22,7 @@ class MangafoxTest(GenericComicReaderTest): - BACKEND = 'mangafox' + MODULE = 'mangafox' def test_download(self): return self._test_download('glass_no_kamen/v02/c000') diff --git a/modules/mangago/test.py b/modules/mangago/test.py index 0596e7a6e7..a0b541e513 100644 --- a/modules/mangago/test.py +++ b/modules/mangago/test.py @@ -21,7 +21,7 @@ class MangagoTest(GenericComicReaderTest): - BACKEND = 'mangago' + MODULE = 'mangago' def test_download(self): return self._test_download('manga/love_scar/mh/manga/love_scar/c001/') diff --git a/modules/mangahere/test.py b/modules/mangahere/test.py index f968dc2de5..2685393a58 100644 --- a/modules/mangahere/test.py +++ b/modules/mangahere/test.py @@ -21,7 +21,7 @@ class MangahereTest(GenericComicReaderTest): - BACKEND = 'mangahere' + MODULE = 'mangahere' def test_download(self): return self._test_download('glass_no_kamen/v02/c000') diff --git a/modules/mangareader/test.py b/modules/mangareader/test.py index 7bd8374a37..c9884ab62e 100644 --- a/modules/mangareader/test.py +++ b/modules/mangareader/test.py @@ -21,7 +21,7 @@ class MangareaderTest(GenericComicReaderTest): - BACKEND = 'mangareader' + MODULE = 'mangareader' def test_download(self): return self._test_download('glass-mask/3') diff --git a/modules/mareeinfo/test.py b/modules/mareeinfo/test.py index 8e6f194268..1acb372b53 100644 --- a/modules/mareeinfo/test.py +++ b/modules/mareeinfo/test.py @@ -22,7 +22,7 @@ class MareeinfoTest(BackendTest): - BACKEND = 'mareeinfo' + MODULE = 'mareeinfo' def test_mareeinfo(self): l = list(self.backend.iter_gauges()) diff --git a/modules/marmiton/test.py b/modules/marmiton/test.py index d8f30ee590..401fa5d62e 100644 --- a/modules/marmiton/test.py +++ b/modules/marmiton/test.py @@ -21,7 +21,7 @@ class MarmitonTest(BackendTest): - BACKEND = 'marmiton' + MODULE = 'marmiton' def test_recipe(self): recipes = self.backend.iter_recipes('fondue') diff --git a/modules/mediawiki/test.py b/modules/mediawiki/test.py index 0aced62134..983304ef8d 100644 --- a/modules/mediawiki/test.py +++ b/modules/mediawiki/test.py @@ -23,7 +23,7 @@ class MediawikiTest(BackendTest): - BACKEND = 'mediawiki' + MODULE = 'mediawiki' def test_get_content(self): self.backend.get_content(u"Utilisateur:Clemux/Test") diff --git a/modules/meteofrance/test.py b/modules/meteofrance/test.py index 1743ab10a7..9a9150a8f3 100644 --- a/modules/meteofrance/test.py +++ b/modules/meteofrance/test.py @@ -22,7 +22,7 @@ class MeteoFranceTest(BackendTest): - BACKEND = 'meteofrance' + MODULE = 'meteofrance' def test_meteofrance(self): l = list(self.backend.iter_city_search('paris')) diff --git a/modules/minutes20/test.py b/modules/minutes20/test.py index 008473dc1b..820d624cb8 100644 --- a/modules/minutes20/test.py +++ b/modules/minutes20/test.py @@ -22,7 +22,7 @@ class Minutes20Test(BackendTest): - BACKEND = 'minutes20' + MODULE = 'minutes20' def test_new_messages(self): for message in self.backend.iter_unread_messages(): diff --git a/modules/monster/test.py b/modules/monster/test.py index f4f4ec2189..043f91c01d 100644 --- a/modules/monster/test.py +++ b/modules/monster/test.py @@ -22,7 +22,7 @@ class MonsterTest(BackendTest): - BACKEND = 'monster' + MODULE = 'monster' def test_monster_search(self): l = list(self.backend.search_job(u'marketing')) diff --git a/modules/nectarine/test.py b/modules/nectarine/test.py index d095e9f4ad..d3101ef1a4 100644 --- a/modules/nectarine/test.py +++ b/modules/nectarine/test.py @@ -22,7 +22,7 @@ class NectarineTest(BackendTest): - BACKEND = 'nectarine' + MODULE = 'nectarine' def test_nectarine(self): l = list(self.backend.iter_radios_search('')) diff --git a/modules/nettokom/test.py b/modules/nettokom/test.py index 44d625e1cc..d2327c4855 100644 --- a/modules/nettokom/test.py +++ b/modules/nettokom/test.py @@ -22,7 +22,7 @@ class NettokomTest(BackendTest): - BACKEND = 'nettokom' + MODULE = 'nettokom' def test_details(self): for subscription in self.backend.iter_subscription(): diff --git a/modules/newsfeed/test.py b/modules/newsfeed/test.py index e57e9ba796..05b4529737 100644 --- a/modules/newsfeed/test.py +++ b/modules/newsfeed/test.py @@ -22,7 +22,7 @@ class NewsfeedTest(BackendTest): - BACKEND = 'newsfeed' + MODULE = 'newsfeed' def test_newsfeed(self): for message in self.backend.iter_unread_messages(): diff --git a/modules/nihonnooto/test.py b/modules/nihonnooto/test.py index cce4f6428b..93d3e6b524 100644 --- a/modules/nihonnooto/test.py +++ b/modules/nihonnooto/test.py @@ -22,7 +22,7 @@ class NihonNoOtoTest(BackendTest): - BACKEND = 'nihonnooto' + MODULE = 'nihonnooto' def test_nihonnooto(self): l = list(self.backend.iter_radios_search('')) diff --git a/modules/nolifetv/test.py b/modules/nolifetv/test.py index 8cc2adf56b..73b58f0d0f 100644 --- a/modules/nolifetv/test.py +++ b/modules/nolifetv/test.py @@ -22,7 +22,7 @@ from weboob.capabilities.video import BaseVideo class NolifeTVTest(BackendTest): - BACKEND = 'nolifetv' + MODULE = 'nolifetv' def test_search(self): l = list(self.backend.search_videos('nolife')) diff --git a/modules/nova/test.py b/modules/nova/test.py index 9b806797d4..30a3c9b0f6 100644 --- a/modules/nova/test.py +++ b/modules/nova/test.py @@ -23,7 +23,7 @@ class NovaTest(BackendTest): - BACKEND = 'nova' + MODULE = 'nova' def test_nova(self): l = list(self.backend.iter_resources((Radio, ), [])) diff --git a/modules/opacwebaloes/test.py b/modules/opacwebaloes/test.py index 517fdf2f52..8a6c946c39 100644 --- a/modules/opacwebaloes/test.py +++ b/modules/opacwebaloes/test.py @@ -22,7 +22,7 @@ class AloestTest(BackendTest): - BACKEND = 'aloes' + MODULE = 'aloes' def test_aloes(self): pass diff --git a/modules/opensubtitles/test.py b/modules/opensubtitles/test.py index 0fc2526388..5c4766f272 100644 --- a/modules/opensubtitles/test.py +++ b/modules/opensubtitles/test.py @@ -23,7 +23,7 @@ class OpensubtitlesTest(BackendTest): - BACKEND = 'opensubtitles' + MODULE = 'opensubtitles' def test_subtitle(self): lsub = [] diff --git a/modules/ouifm/test.py b/modules/ouifm/test.py index fc5730876b..aa59456f38 100644 --- a/modules/ouifm/test.py +++ b/modules/ouifm/test.py @@ -23,7 +23,7 @@ class OuiFMTest(BackendTest): - BACKEND = 'ouifm' + MODULE = 'ouifm' def test_ouifm(self): l = list(self.backend.iter_resources((Radio, ), [])) diff --git a/modules/ovs/test.py b/modules/ovs/test.py index b479641a1e..2198042609 100644 --- a/modules/ovs/test.py +++ b/modules/ovs/test.py @@ -22,7 +22,7 @@ class OvsTest(BackendTest): - BACKEND = 'ovs' + MODULE = 'ovs' def test_ovs(self): raise NotImplementedError() diff --git a/modules/pap/test.py b/modules/pap/test.py index 60c7f41943..89ae46542a 100644 --- a/modules/pap/test.py +++ b/modules/pap/test.py @@ -23,7 +23,7 @@ class PapTest(BackendTest): - BACKEND = 'pap' + MODULE = 'pap' def test_pap(self): query = Query() diff --git a/modules/pariskiwi/test.py b/modules/pariskiwi/test.py index 2f05057237..93cad8c355 100644 --- a/modules/pariskiwi/test.py +++ b/modules/pariskiwi/test.py @@ -23,7 +23,7 @@ class ParisKiwiTest(BackendTest): - BACKEND = 'pariskiwi' + MODULE = 'pariskiwi' def test_pariskiwi_event(self): event = self.backend.get_event('11-9-2013_-Event_2') diff --git a/modules/parolesmania/test.py b/modules/parolesmania/test.py index 5d5089aacf..8136506d71 100644 --- a/modules/parolesmania/test.py +++ b/modules/parolesmania/test.py @@ -22,7 +22,7 @@ class ParolesmaniaTest(BackendTest): - BACKEND = 'parolesmania' + MODULE = 'parolesmania' def test_search_song_n_get(self): l_lyrics = list(self.backend.iter_lyrics('song', 'chien')) diff --git a/modules/parolesmusique/test.py b/modules/parolesmusique/test.py index fb02c0ee2a..784a3a0bc5 100644 --- a/modules/parolesmusique/test.py +++ b/modules/parolesmusique/test.py @@ -22,7 +22,7 @@ class ParolesmusiqueTest(BackendTest): - BACKEND = 'parolesmusique' + MODULE = 'parolesmusique' def test_search_song_n_get(self): l_lyrics = list(self.backend.iter_lyrics('song', 'chien')) diff --git a/modules/parolesnet/test.py b/modules/parolesnet/test.py index 9a55630690..021218e003 100644 --- a/modules/parolesnet/test.py +++ b/modules/parolesnet/test.py @@ -22,7 +22,7 @@ class ParolesnetTest(BackendTest): - BACKEND = 'parolesnet' + MODULE = 'parolesnet' def test_search_song_n_get(self): l_lyrics = list(self.backend.iter_lyrics('song', 'chien')) diff --git a/modules/pastealacon/test.py b/modules/pastealacon/test.py index d9c7adc86d..e4274b4403 100644 --- a/modules/pastealacon/test.py +++ b/modules/pastealacon/test.py @@ -27,7 +27,7 @@ class PastealaconTest(BackendTest): - BACKEND = 'pastealacon' + MODULE = 'pastealacon' def _get_paste(self, _id): # html method diff --git a/modules/pastebin/test.py b/modules/pastebin/test.py index a686829e55..6ff115a96d 100644 --- a/modules/pastebin/test.py +++ b/modules/pastebin/test.py @@ -25,7 +25,7 @@ class PastebinTest(BackendTest): - BACKEND = 'pastebin' + MODULE = 'pastebin' def test_get_paste(self): for _id in ('7HmXwzyt', 'http://pastebin.com/7HmXwzyt'): diff --git a/modules/paypal/test.py b/modules/paypal/test.py index 2a6355f539..136d3eb3c3 100644 --- a/modules/paypal/test.py +++ b/modules/paypal/test.py @@ -21,7 +21,7 @@ class PaypalTest(BackendTest): - BACKEND = 'paypal' + MODULE = 'paypal' def test_balance(self): for account in self.backend.iter_accounts(): diff --git a/modules/phpbb/test.py b/modules/phpbb/test.py index 5cd2ca7101..f62aae2f13 100644 --- a/modules/phpbb/test.py +++ b/modules/phpbb/test.py @@ -22,7 +22,7 @@ class PhpBBTest(BackendTest): - BACKEND = 'phpbb' + MODULE = 'phpbb' def testthreads(self): for thread in self.backend.iter_threads(): diff --git a/modules/piratebay/test.py b/modules/piratebay/test.py index cf8b78305c..7e966bf8b0 100644 --- a/modules/piratebay/test.py +++ b/modules/piratebay/test.py @@ -24,7 +24,7 @@ class PiratebayTest(BackendTest): - BACKEND = 'piratebay' + MODULE = 'piratebay' def test_torrent(self): # try something popular so we sometimes get a magnet-only torrent diff --git a/modules/pixtoilelibre/test.py b/modules/pixtoilelibre/test.py index df56520bfa..a73eb0a41c 100644 --- a/modules/pixtoilelibre/test.py +++ b/modules/pixtoilelibre/test.py @@ -22,7 +22,7 @@ class PixtoilelibreTest(BackendTest): - BACKEND = 'pixtoilelibre' + MODULE = 'pixtoilelibre' # small gif file DATA = 'R0lGODlhAQABAIAAAP///wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==\n' diff --git a/modules/podnapisi/test.py b/modules/podnapisi/test.py index 55243d6f53..1d42d94989 100644 --- a/modules/podnapisi/test.py +++ b/modules/podnapisi/test.py @@ -23,7 +23,7 @@ class PodnapisiTest(BackendTest): - BACKEND = 'podnapisi' + MODULE = 'podnapisi' def test_subtitle(self): lsub = [] diff --git a/modules/poivy/test.py b/modules/poivy/test.py index 96fb1712f0..e0637f6013 100644 --- a/modules/poivy/test.py +++ b/modules/poivy/test.py @@ -22,7 +22,7 @@ class PoivyTest(BackendTest): - BACKEND = 'poivy' + MODULE = 'poivy' def test_list(self): """ diff --git a/modules/popolemploi/test.py b/modules/popolemploi/test.py index 4c16a77888..f350d47907 100644 --- a/modules/popolemploi/test.py +++ b/modules/popolemploi/test.py @@ -22,7 +22,7 @@ class PopolemploiTest(BackendTest): - BACKEND = 'popolemploi' + MODULE = 'popolemploi' def test_popolemploi_search(self): l = list(self.backend.search_job('infographiste')) diff --git a/modules/presseurop/test.py b/modules/presseurop/test.py index ee74ede5d8..a16f18ad10 100644 --- a/modules/presseurop/test.py +++ b/modules/presseurop/test.py @@ -22,7 +22,7 @@ class PresseuropTest(BackendTest): - BACKEND = 'presseurop' + MODULE = 'presseurop' def test_new_messages(self): for message in self.backend.iter_unread_messages(): diff --git a/modules/prixcarburants/test.py b/modules/prixcarburants/test.py index 9151b7a43f..c01414bf2a 100644 --- a/modules/prixcarburants/test.py +++ b/modules/prixcarburants/test.py @@ -22,7 +22,7 @@ class PrixCarburantsTest(BackendTest): - BACKEND = 'prixcarburants' + MODULE = 'prixcarburants' def test_prixcarburants(self): products = list(self.backend.search_products('gpl')) diff --git a/modules/quvi/test.py b/modules/quvi/test.py index ee2c03228d..4482e0b63c 100644 --- a/modules/quvi/test.py +++ b/modules/quvi/test.py @@ -22,7 +22,7 @@ class QuviTest(BackendTest): - BACKEND = 'quvi' + MODULE = 'quvi' def test_get_id(self): v = self.backend.get_video('youtube.BaW_jenozKc') diff --git a/modules/radiofrance/test.py b/modules/radiofrance/test.py index 3abc94ef14..8cfdfa5925 100644 --- a/modules/radiofrance/test.py +++ b/modules/radiofrance/test.py @@ -24,7 +24,7 @@ class RadioFranceTest(BackendTest): - BACKEND = 'radiofrance' + MODULE = 'radiofrance' def test_get_radios(self): l = list(self.backend.iter_resources(objs=[Radio], split_path=[])) diff --git a/modules/razibus/test.py b/modules/razibus/test.py index 1dc29f3a16..de1b81130b 100644 --- a/modules/razibus/test.py +++ b/modules/razibus/test.py @@ -23,7 +23,7 @@ class RazibusTest(BackendTest): - BACKEND = 'razibus' + MODULE = 'razibus' def test_razibus(self): l = list(self.backend.list_events(datetime.now())) diff --git a/modules/regionsjob/test.py b/modules/regionsjob/test.py index dac71834a0..1a1594eb4c 100644 --- a/modules/regionsjob/test.py +++ b/modules/regionsjob/test.py @@ -22,7 +22,7 @@ class RegionsjobTest(BackendTest): - BACKEND = 'regionsjob' + MODULE = 'regionsjob' def test_regionjob_search(self): l = list(self.backend.search_job(u'informaticien')) diff --git a/modules/sachsen/test.py b/modules/sachsen/test.py index a1e88a81cb..8ecdb4c5f9 100644 --- a/modules/sachsen/test.py +++ b/modules/sachsen/test.py @@ -22,7 +22,7 @@ class SachsenTest(BackendTest): - BACKEND = 'sachsen' + MODULE = 'sachsen' def test_sachsen(self): l = list(self.backend.iter_gauges()) diff --git a/modules/seeklyrics/test.py b/modules/seeklyrics/test.py index 9a0cb9a710..dd46dd398f 100644 --- a/modules/seeklyrics/test.py +++ b/modules/seeklyrics/test.py @@ -22,7 +22,7 @@ class SeeklyricsTest(BackendTest): - BACKEND = 'seeklyrics' + MODULE = 'seeklyrics' def test_search_song_n_get(self): l_lyrics = list(self.backend.iter_lyrics('song', 'Complainte')) diff --git a/modules/seloger/test.py b/modules/seloger/test.py index 53ff415674..23bf48bfee 100644 --- a/modules/seloger/test.py +++ b/modules/seloger/test.py @@ -23,7 +23,7 @@ class SeLogerTest(BackendTest): - BACKEND = 'seloger' + MODULE = 'seloger' def test_seloger(self): query = Query() diff --git a/modules/senscritique/test.py b/modules/senscritique/test.py index ea3fedfa54..7d3742642a 100644 --- a/modules/senscritique/test.py +++ b/modules/senscritique/test.py @@ -23,7 +23,7 @@ class SenscritiqueTest(BackendTest): - BACKEND = 'senscritique' + MODULE = 'senscritique' def test_senscritique(self): l = list(self.backend.list_events(datetime.now())) diff --git a/modules/sfr/test.py b/modules/sfr/test.py index 22c19f393a..f13898e163 100644 --- a/modules/sfr/test.py +++ b/modules/sfr/test.py @@ -20,7 +20,7 @@ from weboob.tools.test import BackendTest class SFRTest(BackendTest): - BACKEND = 'sfr' + MODULE = 'sfr' def test_sfr(self): pass diff --git a/modules/simplyreadit/test.py b/modules/simplyreadit/test.py index 8ce485cd7c..e76fc1e37a 100644 --- a/modules/simplyreadit/test.py +++ b/modules/simplyreadit/test.py @@ -21,7 +21,7 @@ class SimplyreaditTest(GenericComicReaderTest): - BACKEND = 'simplyreadit' + MODULE = 'simplyreadit' def test_download(self): return self._test_download('bonnouji/en/1/3') diff --git a/modules/societegenerale/test.py b/modules/societegenerale/test.py index 63973a3981..d9f60ccd17 100644 --- a/modules/societegenerale/test.py +++ b/modules/societegenerale/test.py @@ -22,7 +22,7 @@ class SocieteGeneraleTest(BackendTest): - BACKEND = 'societegenerale' + MODULE = 'societegenerale' def test_societegenerale(self): l = list(self.backend.iter_accounts()) diff --git a/modules/somafm/test.py b/modules/somafm/test.py index 662626bd27..0b251e8560 100644 --- a/modules/somafm/test.py +++ b/modules/somafm/test.py @@ -23,7 +23,7 @@ class SomaFMTest(BackendTest): - BACKEND = 'somafm' + MODULE = 'somafm' def test_difm(self): ls = list(self.backend.iter_resources((Radio, ), [])) diff --git a/modules/sueurdemetal/test.py b/modules/sueurdemetal/test.py index e25a42fbe9..66b3d01b28 100644 --- a/modules/sueurdemetal/test.py +++ b/modules/sueurdemetal/test.py @@ -23,7 +23,7 @@ from datetime import datetime, timedelta class SueurDeMetalTest(BackendTest): - BACKEND = 'sueurdemetal' + MODULE = 'sueurdemetal' def test_sueurdemetal_searchcity(self): q = Query() diff --git a/modules/supertoinette/test.py b/modules/supertoinette/test.py index 92d8fbbe0c..4ddc60404d 100644 --- a/modules/supertoinette/test.py +++ b/modules/supertoinette/test.py @@ -21,7 +21,7 @@ class SupertoinetteTest(BackendTest): - BACKEND = 'supertoinette' + MODULE = 'supertoinette' def test_recipe(self): recipes = self.backend.iter_recipes('fondue') diff --git a/modules/taz/test.py b/modules/taz/test.py index 3abd155a5a..de1b5cb74d 100644 --- a/modules/taz/test.py +++ b/modules/taz/test.py @@ -22,7 +22,7 @@ class TazTest(BackendTest): - BACKEND = 'taz' + MODULE = 'taz' def test_new_messages(self): for message in self.backend.iter_unread_messages(): diff --git a/modules/tinder/test.py b/modules/tinder/test.py index 31294a80b0..9c36bfb4f0 100644 --- a/modules/tinder/test.py +++ b/modules/tinder/test.py @@ -22,7 +22,7 @@ class TinderTest(BackendTest): - BACKEND = 'tinder' + MODULE = 'tinder' def test_tinder(self): self.backend.browser.like_profile() diff --git a/modules/transilien/test.py b/modules/transilien/test.py index c762c8c5ea..4c4e5070b8 100644 --- a/modules/transilien/test.py +++ b/modules/transilien/test.py @@ -24,7 +24,7 @@ class TransilienTest(BackendTest): - BACKEND = 'transilien' + MODULE = 'transilien' def test_stations(self): stations = list(self.backend.iter_station_search('aul')) diff --git a/modules/trictractv/test.py b/modules/trictractv/test.py index 621287f525..cda4bae2c7 100644 --- a/modules/trictractv/test.py +++ b/modules/trictractv/test.py @@ -22,7 +22,7 @@ class TricTracTVTest(BackendTest): - BACKEND = 'trictractv' + MODULE = 'trictractv' def test_trictractv(self): l = list(self.backend.search_videos('TricTrac')) diff --git a/modules/tvsubtitles/test.py b/modules/tvsubtitles/test.py index eef2eaff26..b3ca2f1a3d 100644 --- a/modules/tvsubtitles/test.py +++ b/modules/tvsubtitles/test.py @@ -23,7 +23,7 @@ class TvsubtitlesTest(BackendTest): - BACKEND = 'tvsubtitles' + MODULE = 'tvsubtitles' def test_subtitle(self): subtitles = list(self.backend.iter_subtitles('fr', 'sopranos')) diff --git a/modules/twitter/test.py b/modules/twitter/test.py index 748d558a62..ac8351d486 100644 --- a/modules/twitter/test.py +++ b/modules/twitter/test.py @@ -24,7 +24,7 @@ class TwitterTest(BackendTest): - BACKEND = 'twitter' + MODULE = 'twitter' def test_twitter_logged(self): if self.backend.browser.username: diff --git a/modules/unsee/test.py b/modules/unsee/test.py index 919b48d0e5..08a44ae420 100644 --- a/modules/unsee/test.py +++ b/modules/unsee/test.py @@ -22,7 +22,7 @@ class UnseeTest(BackendTest): - BACKEND = 'unsee' + MODULE = 'unsee' # small gif file DATA = 'R0lGODlhAQABAIAAAP///wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==\n' diff --git a/modules/ups/test.py b/modules/ups/test.py index 9540e4e0d3..b854a984c3 100644 --- a/modules/ups/test.py +++ b/modules/ups/test.py @@ -22,7 +22,7 @@ class UpsTest(BackendTest): - BACKEND = 'ups' + MODULE = 'ups' def test_ups(self): raise NotImplementedError() diff --git a/modules/vimeo/test.py b/modules/vimeo/test.py index f853e9b028..fc82aeca33 100644 --- a/modules/vimeo/test.py +++ b/modules/vimeo/test.py @@ -23,7 +23,7 @@ class VimeoTest(BackendTest): - BACKEND = 'vimeo' + MODULE = 'vimeo' def test_search(self): l = list(itertools.islice(self.backend.search_videos('boobs'), 0, 20)) diff --git a/modules/vlille/test.py b/modules/vlille/test.py index ae98d59fc5..d5df5be051 100644 --- a/modules/vlille/test.py +++ b/modules/vlille/test.py @@ -21,7 +21,7 @@ class VlilleTest(BackendTest): - BACKEND = 'vlille' + MODULE = 'vlille' def test_vlille(self): l = list(self.backend.iter_gauges()) diff --git a/modules/voyagessncf/test.py b/modules/voyagessncf/test.py index f22103edb9..b061dd781c 100644 --- a/modules/voyagessncf/test.py +++ b/modules/voyagessncf/test.py @@ -22,7 +22,7 @@ class VoyagesSNCFTest(BackendTest): - BACKEND = 'voyagessncf' + MODULE = 'voyagessncf' def test_stations(self): stations = list(self.backend.iter_station_search('paris')) diff --git a/modules/weather/test.py b/modules/weather/test.py index 56e8efd0fe..fac51b6b48 100644 --- a/modules/weather/test.py +++ b/modules/weather/test.py @@ -22,7 +22,7 @@ class WeatherTest(BackendTest): - BACKEND = 'weather' + MODULE = 'weather' def test_cities(self): paris = self.backend.iter_city_search('crappything¶m=;drop database') diff --git a/modules/wellsfargo/test.py b/modules/wellsfargo/test.py index 0c86f2843d..e2bbd1619e 100644 --- a/modules/wellsfargo/test.py +++ b/modules/wellsfargo/test.py @@ -22,7 +22,7 @@ class WellsFargoTest(BackendTest): - BACKEND = 'wellsfargo' + MODULE = 'wellsfargo' def test_history(self): """ diff --git a/modules/wordreference/test.py b/modules/wordreference/test.py index d247ff5076..00cce9d4e0 100644 --- a/modules/wordreference/test.py +++ b/modules/wordreference/test.py @@ -22,7 +22,7 @@ class WordReferenceTest(BackendTest): - BACKEND = 'wordreference' + MODULE = 'wordreference' def test_translate(self): tr = self.backend.translate('French', 'English', 'chat') diff --git a/modules/yahoo/test.py b/modules/yahoo/test.py index 421817106f..bb082c1031 100644 --- a/modules/yahoo/test.py +++ b/modules/yahoo/test.py @@ -22,7 +22,7 @@ class YahooTest(BackendTest): - BACKEND = 'yahoo' + MODULE = 'yahoo' def test_meteo(self): l = list(self.backend.iter_city_search('paris')) diff --git a/modules/youjizz/test.py b/modules/youjizz/test.py index fc05d3b9e6..1975689b37 100644 --- a/modules/youjizz/test.py +++ b/modules/youjizz/test.py @@ -24,7 +24,7 @@ class YoujizzTest(BackendTest): - BACKEND = 'youjizz' + MODULE = 'youjizz' def test_search(self): self.assertTrue(len(self.backend.search_videos('anus', nsfw=False)) == 0) diff --git a/modules/youporn/test.py b/modules/youporn/test.py index e3f1bb905d..beea42d1e5 100644 --- a/modules/youporn/test.py +++ b/modules/youporn/test.py @@ -23,7 +23,7 @@ class YoupornTest(BackendTest): - BACKEND = 'youporn' + MODULE = 'youporn' def test_search(self): self.assertTrue(len(self.backend.search_videos('ass to mouth', nsfw=False)) == 0) diff --git a/modules/youtube/test.py b/modules/youtube/test.py index 2b08889f57..947a5735bb 100644 --- a/modules/youtube/test.py +++ b/modules/youtube/test.py @@ -23,7 +23,7 @@ class YoutubeTest(BackendTest): - BACKEND = 'youtube' + MODULE = 'youtube' def test_search(self): l = list(self.backend.search_videos('lol')) diff --git a/tools/boilerplate_data/base_test.py b/tools/boilerplate_data/base_test.py index e6a9500353..108f09d3c5 100644 --- a/tools/boilerplate_data/base_test.py +++ b/tools/boilerplate_data/base_test.py @@ -3,7 +3,7 @@ class ${r.classname}Test(BackendTest): - BACKEND = '${r.name}' + MODULE = '${r.name}' def test_${r.name}(self): raise NotImplementedError() diff --git a/tools/boilerplate_data/comic_test.py b/tools/boilerplate_data/comic_test.py index 331fad7659..739fc9e79b 100644 --- a/tools/boilerplate_data/comic_test.py +++ b/tools/boilerplate_data/comic_test.py @@ -3,7 +3,7 @@ class ${r.classname}BackendTest(GenericComicReaderTest): - BACKEND = '${r.name}' + MODULE = '${r.name}' def test_download(self): return self._test_download('${r.download_id}') diff --git a/weboob/tools/test.py b/weboob/tools/test.py index d54eeb3c1b..5228134082 100644 --- a/weboob/tools/test.py +++ b/weboob/tools/test.py @@ -34,7 +34,7 @@ class BackendTest(TestCase): - BACKEND = None + MODULE = None def __init__(self, *args, **kwargs): TestCase.__init__(self, *args, **kwargs) @@ -44,7 +44,7 @@ def __init__(self, *args, **kwargs): self.backend = None self.weboob = Weboob() - if self.weboob.load_backends(modules=[self.BACKEND]): + if self.weboob.load_backends(modules=[self.MODULE]): # provide the tests with all available backends self.backends = self.weboob.backend_instances # chose one backend (enough for most tests) -- GitLab