diff --git a/modules/freemobile/backend.py b/modules/freemobile/backend.py index c17dd316..3864ef2b 100644 --- a/modules/freemobile/backend.py +++ b/modules/freemobile/backend.py @@ -62,7 +62,7 @@ class FreeMobileBackend(BaseBackend, ICapBill): else: raise SubscriptionNotFound() - def iter_history(self, subscription): + def iter_bills_history(self, subscription): if not isinstance(subscription, Subscription): subscription = self.get_subscription(subscription) diff --git a/modules/leclercmobile/backend.py b/modules/leclercmobile/backend.py index ad6c142e..1ea9cd5f 100644 --- a/modules/leclercmobile/backend.py +++ b/modules/leclercmobile/backend.py @@ -63,7 +63,7 @@ class LeclercMobileBackend(BaseBackend, ICapBill): else: raise SubscriptionNotFound() - def iter_history(self, subscription): + def iter_bills_history(self, subscription): with self.browser: for history in self.browser.get_history(): yield history diff --git a/modules/leclercmobile/test.py b/modules/leclercmobile/test.py index cd8af041..25cbb246 100644 --- a/modules/leclercmobile/test.py +++ b/modules/leclercmobile/test.py @@ -29,6 +29,6 @@ class LeclercMobileTest(BackendTest): def test_leclercmobile(self): for subscription in self.backend.iter_subscription(): - list(self.backend.iter_history(subscription.id)) + list(self.backend.iter_bills_history(subscription.id)) for bill in self.backend.iter_bills(subscription.id): self.backend.download_bill(bill.id) diff --git a/modules/nettokom/backend.py b/modules/nettokom/backend.py index 092fc17f..4e69f8e1 100644 --- a/modules/nettokom/backend.py +++ b/modules/nettokom/backend.py @@ -63,7 +63,7 @@ class NettoKomBackend(BaseBackend, ICapBill): else: raise SubscriptionNotFound() - def iter_history(self, subscription): + def iter_bills_history(self, subscription): with self.browser: for history in self.browser.get_history(): yield history diff --git a/weboob/applications/boobill/boobill.py b/weboob/applications/boobill/boobill.py index 329f70bf..1f7e8523 100644 --- a/weboob/applications/boobill/boobill.py +++ b/weboob/applications/boobill/boobill.py @@ -133,7 +133,7 @@ class Boobill(ReplApplication): Get the history of subscriptions. If no ID given, display histories of all backends """ - self.exec_method(id, 'iter_history') + self.exec_method(id, 'iter_bills_history') def do_bills(self, id): """ diff --git a/weboob/capabilities/bill.py b/weboob/capabilities/bill.py index 601b917f..b0dff123 100644 --- a/weboob/capabilities/bill.py +++ b/weboob/capabilities/bill.py @@ -99,7 +99,7 @@ class ICapBill(ICapCollection): """ raise NotImplementedError() - def iter_history(self, subscription): + def iter_bills_history(self, subscription): """ Iter history of a subscription.