split tests and ignore when the website is not available
This commit is contained in:
parent
c63fcc8c7d
commit
5fc4ead2ac
1 changed files with 12 additions and 3 deletions
|
|
@ -26,8 +26,17 @@ class AuMTest(BackendTest):
|
|||
BACKEND = 'aum'
|
||||
|
||||
def test_new_messages(self):
|
||||
for message in self.backend.iter_unread_messages():
|
||||
try:
|
||||
for message in self.backend.iter_unread_messages():
|
||||
pass
|
||||
except BrowserUnavailable:
|
||||
# enough frequent to do not care about.
|
||||
pass
|
||||
|
||||
contacts = list(self.backend.iter_contacts())
|
||||
self.backend.fillobj(contacts[0], ['photos', 'profile'])
|
||||
def test_contacts(self):
|
||||
try:
|
||||
contacts = list(self.backend.iter_contacts())
|
||||
self.backend.fillobj(contacts[0], ['photos', 'profile'])
|
||||
except BrowserUnavailable:
|
||||
# enough frequent to do not care about.
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue