It's a bit more convoluted to setup the test environment to work with
selenium (eg. needs a browser installed and Xorg running, ...). It's
possible someone would want to skip those.
v2: Use 'PW' prefix rather than 'PATCHWORK', per existing test
parameters, and pass said variable through tox
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
_SCREENSHOT_DIR = os.path.dirname(__file__) + '/../../selenium_screenshots'
def setUp(self):
+ self.skip = os.getenv('PW_SKIP_BROWSER_TESTS', None)
+ if self.skip:
+ self.skipTest('Disabled by environment variable')
+
super(SeleniumTestCase, self).setUp()
self.browser = os.getenv('SELENIUM_BROWSER', 'chrome')
passenv =
http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
PW_TEST_DB_USER PW_TEST_DB_PASS
- DISPLAY SELENIUM_BROWSER
+ DISPLAY SELENIUM_BROWSER PW_SKIP_BROWSER_TESTS
[testenv:pep8]
basepython = python2.7