Only skip tests if on Travis

This commit is contained in:
Michael Droettboom 2018-05-09 15:00:21 -04:00
parent 1e45ffe957
commit 3a625fad3d
1 changed files with 2 additions and 3 deletions

View File

@ -1,8 +1,7 @@
import os
import pathlib
import time
import pytest
def test_init(selenium):
assert 'Python initialization complete' in selenium.logs
@ -96,6 +95,6 @@ def pytest_generate_tests(metafunc):
test_modules.append(parts[0])
# XXX: The tests take too long to run, so we're just doing a
# sanity check on the first 25
if len(test_modules) > 25:
if 'TRAVIS' in os.environ and len(test_modules) > 25:
break
metafunc.parametrize("python_test", test_modules)