Skip to content

Commit

Permalink
Use firefox by default, phantom in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jpic committed Apr 6, 2015
1 parent 267acfa commit 4246b31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -9,6 +9,7 @@ python:
env:
global:
- TESTS_SKIP_LIVESERVER=1
- TESTS_USE_PHANTOMJS=1
- PIP_DISABLE_PIP_VERSION_CHECK=true
- BASEREQ="tox"
- USE_POSTGRES=0
Expand Down
7 changes: 6 additions & 1 deletion autocomplete_light/tests/test_widget.py
Expand Up @@ -53,7 +53,12 @@ class WidgetTestCase(LiveServerTestCase):
def setUpClass(cls):
if os.environ.get('TESTS_SKIP_LIVESERVER', False):
raise unittest.SkipTest('TESTS_SKIP_LIVESERVER enabled')
cls.selenium = webdriver.PhantomJS()

if os.environ.get('TESTS_USE_PHANTOMJS', False):
cls.selenium = webdriver.PhantomJS()
else:
cls.selenium = webdriver.Firefox()

cls.selenium.implicitly_wait(WAIT_TIME)
super(WidgetTestCase, cls).setUpClass()

Expand Down

0 comments on commit 4246b31

Please sign in to comment.