rename iter_operations to iter_coming

This commit is contained in:
Romain Bignon 2012-03-23 17:06:41 +01:00
commit 8f282c9ae8
10 changed files with 18 additions and 16 deletions

View file

@ -90,7 +90,7 @@ class BNPorcBackend(BaseBackend, ICapBank, ICapMessages):
with self.browser: with self.browser:
return self.browser.iter_history(account._link_id) return self.browser.iter_history(account._link_id)
def iter_operations(self, account): def iter_coming(self, account):
with self.browser: with self.browser:
return self.browser.iter_coming_operations(account._link_id) return self.browser.iter_coming_operations(account._link_id)

View file

@ -29,7 +29,7 @@ class BNPorcTest(BackendTest):
l = list(self.backend.iter_accounts()) l = list(self.backend.iter_accounts())
if len(l) > 0: if len(l) > 0:
a = l[0] a = l[0]
list(self.backend.iter_operations(a)) list(self.backend.iter_coming(a))
list(self.backend.iter_history(a)) list(self.backend.iter_history(a))
def test_msgs(self): def test_msgs(self):

View file

@ -66,7 +66,8 @@ class BoursoramaBackend(BaseBackend, ICapBank):
for history in self.browser.get_history(account): for history in self.browser.get_history(account):
yield history yield history
def iter_operations(self, account): # TODO
with self.browser: #def iter_coming(self, account):
for coming in self.browser.get_coming_operations(account): # with self.browser:
yield coming # for coming in self.browser.get_coming_operations(account):
# yield coming

View file

@ -28,5 +28,5 @@ class BoursoramaTest(BackendTest):
l = list(self.backend.iter_accounts()) l = list(self.backend.iter_accounts())
if len(l) > 0: if len(l) > 0:
a = l[0] a = l[0]
list(self.backend.iter_operations(a)) list(self.backend.iter_coming(a))
list(self.backend.iter_history(a)) list(self.backend.iter_history(a))

View file

@ -56,7 +56,7 @@ class CreditMutuelBackend(BaseBackend, ICapBank):
else: else:
raise AccountNotFound() raise AccountNotFound()
def iter_operations(self, account): def iter_coming(self, account):
""" TODO Not supported yet """ """ TODO Not supported yet """
return iter([]) return iter([])

View file

@ -75,7 +75,8 @@ class INGBackend(BaseBackend, ICapBank):
for history in self.browser.get_history(account.id): for history in self.browser.get_history(account.id):
yield history yield history
def iter_operations(self, account): # TODO
with self.browser: #def iter_coming(self, account):
for coming in self.browser.get_coming_operations(account.id): # with self.browser:
yield coming # for coming in self.browser.get_coming_operations(account.id):
# yield coming

View file

@ -28,5 +28,5 @@ class INGTest(BackendTest):
l = list(self.backend.iter_accounts()) l = list(self.backend.iter_accounts())
if len(l) > 0: if len(l) > 0:
a = l[0] a = l[0]
list(self.backend.iter_operations(a)) list(self.backend.iter_coming(a))
list(self.backend.iter_history(a)) list(self.backend.iter_history(a))

View file

@ -59,7 +59,7 @@ class LCLBackend(BaseBackend, ICapBank):
else: else:
raise AccountNotFound() raise AccountNotFound()
def iter_operations(self, account): def iter_coming(self, account):
""" TODO Not supported yet """ """ TODO Not supported yet """
return iter([]) return iter([])

View file

@ -28,5 +28,5 @@ class SocieteGeneraleTest(BackendTest):
self.assertTrue(len(l) > 0) self.assertTrue(len(l) > 0)
#if len(l) > 0: #if len(l) > 0:
# a = l[0] # a = l[0]
# list(self.backend.iter_operations(a)) # list(self.backend.iter_coming(a))
# list(self.backend.iter_history(a)) # list(self.backend.iter_history(a))

View file

@ -238,7 +238,7 @@ class Boobank(ReplApplication):
def do(backend): def do(backend):
account = backend.get_account(id) account = backend.get_account(id)
return backend.iter_operations(account) return backend.iter_coming(account)
for backend, operation in self.do(do, backends=names): for backend, operation in self.do(do, backends=names):
self.format(operation) self.format(operation)