Commit 8f282c9a authored by Romain Bignon's avatar Romain Bignon

rename iter_operations to iter_coming

parent 9bd73462
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment