e2e: fix lint error
This commit is contained in:
parent
7e47b64b05
commit
246d00bdde
|
@ -20,7 +20,7 @@ from passbook.core.models import User
|
||||||
|
|
||||||
@lru_cache
|
@lru_cache
|
||||||
# pylint: disable=invalid-name
|
# pylint: disable=invalid-name
|
||||||
def USER() -> User:
|
def USER() -> User: # noqa
|
||||||
"""Cached function that always returns pbadmin"""
|
"""Cached function that always returns pbadmin"""
|
||||||
return User.objects.get(username="pbadmin")
|
return User.objects.get(username="pbadmin")
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ class SeleniumTestCase(StaticLiveServerTestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super().setUp()
|
super().setUp()
|
||||||
self.driver = self._get_driver()
|
self.driver = self._get_driver()
|
||||||
|
self.driver.maximize_window()
|
||||||
self.driver.implicitly_wait(5)
|
self.driver.implicitly_wait(5)
|
||||||
self.wait = WebDriverWait(self.driver, 10)
|
self.wait = WebDriverWait(self.driver, 10)
|
||||||
self.apply_default_data()
|
self.apply_default_data()
|
||||||
|
|
Reference in a new issue