Exemple #1
0
 def setUpClass(cls):
     socket.setdefaulttimeout(60)
     if os.environ.get('WITH_SELENIUM', False):
         time.sleep(1)
         # Start a virtual display server for running the tests headless.
         if os.environ.get('SELENIUM_HEADLESS', False):
             cls.vdisplay = xvfbwrapper.Xvfb(width=1280, height=720)
             cls.vdisplay.start()
         cls.selenium = WebDriver()
     super(SeleniumTestCase, cls).setUpClass()
Exemple #2
0
 def setUpClass(cls):
     socket.setdefaulttimeout(60)
     if os.environ.get('WITH_SELENIUM', False):
         time.sleep(1)
         cls.selenium = WebDriver()
     super(SeleniumTestCase, cls).setUpClass()