Skip to content

Commit ea60010

Browse files
committed
Trying to solve with conda
1 parent 38aa2b0 commit ea60010

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

conda/base.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ dependencies:
1010
- make
1111
- sqlite
1212
- webdriver-manager
13+
- python-chromedriver-binary
1314
- pip
1415
- pip:
1516
- epigraphhub

tests/test_webapp.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
from selenium import webdriver
22
from selenium.webdriver.common.by import By
33
from selenium.webdriver.chrome.options import Options
4-
from webdriver_manager.chrome import ChromeDriverManager
54
import unittest
65

76

87
class TestEpiGraphHub(unittest.TestCase):
98
@classmethod
109
def setUpClass(cls):
11-
chrome_options = Options()
12-
chrome_options.add_argument("--disable-gpu")
10+
chrome_options = webdriver.ChromeOptions()
1311
chrome_options.add_argument("--headless")
14-
chrome_options.binary_location = ChromeDriverManager().install()
15-
cls.driver = webdriver.Chrome()
12+
chrome_options.add_argument("--no-sandbox")
13+
chrome_options.add_argument("--disable-gpu")
14+
chrome_options.add_argument("--disable-dev-shm-usage")
15+
cls.driver = webdriver.Chrome(options=chrome_options)
1616
cls.driver.get("http://localhost:8088")
1717

1818
@classmethod

0 commit comments

Comments
 (0)