Rename iter_history of ICapBill to iter_bills_history
This commit is contained in:
parent
53caf6399c
commit
5809f1112a
6 changed files with 6 additions and 6 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue