rename iter_operations to iter_coming
This commit is contained in:
parent
9bd7346261
commit
8f282c9ae8
10 changed files with 18 additions and 16 deletions
|
|
@ -90,7 +90,7 @@ class BNPorcBackend(BaseBackend, ICapBank, ICapMessages):
|
|||
with self.browser:
|
||||
return self.browser.iter_history(account._link_id)
|
||||
|
||||
def iter_operations(self, account):
|
||||
def iter_coming(self, account):
|
||||
with self.browser:
|
||||
return self.browser.iter_coming_operations(account._link_id)
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class BNPorcTest(BackendTest):
|
|||
l = list(self.backend.iter_accounts())
|
||||
if len(l) > 0:
|
||||
a = l[0]
|
||||
list(self.backend.iter_operations(a))
|
||||
list(self.backend.iter_coming(a))
|
||||
list(self.backend.iter_history(a))
|
||||
|
||||
def test_msgs(self):
|
||||
|
|
|
|||
|
|
@ -66,7 +66,8 @@ class BoursoramaBackend(BaseBackend, ICapBank):
|
|||
for history in self.browser.get_history(account):
|
||||
yield history
|
||||
|
||||
def iter_operations(self, account):
|
||||
with self.browser:
|
||||
for coming in self.browser.get_coming_operations(account):
|
||||
yield coming
|
||||
# TODO
|
||||
#def iter_coming(self, account):
|
||||
# with self.browser:
|
||||
# for coming in self.browser.get_coming_operations(account):
|
||||
# yield coming
|
||||
|
|
|
|||
|
|
@ -28,5 +28,5 @@ class BoursoramaTest(BackendTest):
|
|||
l = list(self.backend.iter_accounts())
|
||||
if len(l) > 0:
|
||||
a = l[0]
|
||||
list(self.backend.iter_operations(a))
|
||||
list(self.backend.iter_coming(a))
|
||||
list(self.backend.iter_history(a))
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class CreditMutuelBackend(BaseBackend, ICapBank):
|
|||
else:
|
||||
raise AccountNotFound()
|
||||
|
||||
def iter_operations(self, account):
|
||||
def iter_coming(self, account):
|
||||
""" TODO Not supported yet """
|
||||
return iter([])
|
||||
|
||||
|
|
|
|||
|
|
@ -75,7 +75,8 @@ class INGBackend(BaseBackend, ICapBank):
|
|||
for history in self.browser.get_history(account.id):
|
||||
yield history
|
||||
|
||||
def iter_operations(self, account):
|
||||
with self.browser:
|
||||
for coming in self.browser.get_coming_operations(account.id):
|
||||
yield coming
|
||||
# TODO
|
||||
#def iter_coming(self, account):
|
||||
# with self.browser:
|
||||
# for coming in self.browser.get_coming_operations(account.id):
|
||||
# yield coming
|
||||
|
|
|
|||
|
|
@ -28,5 +28,5 @@ class INGTest(BackendTest):
|
|||
l = list(self.backend.iter_accounts())
|
||||
if len(l) > 0:
|
||||
a = l[0]
|
||||
list(self.backend.iter_operations(a))
|
||||
list(self.backend.iter_coming(a))
|
||||
list(self.backend.iter_history(a))
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class LCLBackend(BaseBackend, ICapBank):
|
|||
else:
|
||||
raise AccountNotFound()
|
||||
|
||||
def iter_operations(self, account):
|
||||
def iter_coming(self, account):
|
||||
""" TODO Not supported yet """
|
||||
return iter([])
|
||||
|
||||
|
|
|
|||
|
|
@ -28,5 +28,5 @@ class SocieteGeneraleTest(BackendTest):
|
|||
self.assertTrue(len(l) > 0)
|
||||
#if len(l) > 0:
|
||||
# a = l[0]
|
||||
# list(self.backend.iter_operations(a))
|
||||
# list(self.backend.iter_coming(a))
|
||||
# list(self.backend.iter_history(a))
|
||||
|
|
|
|||
|
|
@ -238,7 +238,7 @@ class Boobank(ReplApplication):
|
|||
|
||||
def do(backend):
|
||||
account = backend.get_account(id)
|
||||
return backend.iter_operations(account)
|
||||
return backend.iter_coming(account)
|
||||
|
||||
for backend, operation in self.do(do, backends=names):
|
||||
self.format(operation)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue