From e6e95d64caf8f0717d0337796d05de791154f130 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Fri, 1 Oct 2010 09:54:28 +0200 Subject: [PATCH] fix test when no contact is available --- weboob/backends/aum/test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weboob/backends/aum/test.py b/weboob/backends/aum/test.py index bf8b158b..b01efe45 100644 --- a/weboob/backends/aum/test.py +++ b/weboob/backends/aum/test.py @@ -38,6 +38,9 @@ class AuMTest(BackendTest): def test_contacts(self): try: contacts = list(self.backend.iter_contacts()) + if len(contacts) == 0: + # so bad, we can't test that... + return self.backend.fillobj(contacts[0], ['photos', 'profile']) except BrowserUnavailable: # enough frequent to do not care about.