fix test when no contact is available
This commit is contained in:
parent
17e679f3e1
commit
e6e95d64ca
1 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue