fix when username/password is invalid
This commit is contained in:
parent
df1ae8cdb9
commit
248b808206
1 changed files with 3 additions and 3 deletions
|
|
@ -55,7 +55,7 @@ class RedmineBrowser(BaseBrowser):
|
|||
BaseBrowser.__init__(self, *args, **kwargs)
|
||||
|
||||
def is_logged(self):
|
||||
return self.page and len(self.page.document.getroot().cssselect('a.my-account')) == 1
|
||||
return self.is_on_page(LoginPage) or self.page and len(self.page.document.getroot().cssselect('a.my-account')) == 1
|
||||
|
||||
def login(self):
|
||||
assert isinstance(self.username, basestring)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue