Skip to content

Commit 95694b2

Browse files
committed
Fixing webapp test
1 parent b9e0ffa commit 95694b2

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

tests/test_webapp.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ def setUpClass(cls):
1111
chrome_options = Options()
1212
chrome_options.add_argument("--disable-gpu")
1313
chrome_options.add_argument("--headless")
14-
cls.driver = webdriver.Chrome(
15-
ChromeDriverManager().install(),
16-
options=chrome_options
17-
)
14+
ChromeDriverManager().install()
15+
cls.driver = webdriver.Chrome()
1816
cls.driver.get("http://localhost:8088")
1917

2018
@classmethod
@@ -26,7 +24,7 @@ def find_css_element(self, value):
2624

2725
def test_title(self):
2826
title = self.driver.title
29-
self.assertEqual(title, 'EpiGraphHub')
27+
self.assertEqual(title, "EpiGraphHub")
3028

3129
def test_login_as_guest(self):
3230
self.driver.implicitly_wait(0.5)
@@ -35,12 +33,11 @@ def test_login_as_guest(self):
3533
login_button.click()
3634
self.driver.implicitly_wait(0.5)
3735
# guest:guest
38-
self.find_css_element("input#username.form-control").send_keys('guest')
39-
self.find_css_element("input#password.form-control").send_keys('guest')
36+
self.find_css_element("input#username.form-control").send_keys("guest")
37+
self.find_css_element("input#password.form-control").send_keys("guest")
4038
# Sign In
4139
self.find_css_element("input.btn.btn-primary.btn-block").click()
4240

4341

44-
if __name__ == '__main__':
42+
if __name__ == "__main__":
4543
unittest.main(verbosity=2)
46-

0 commit comments

Comments
 (0)