diff --git a/.travis.yml b/.travis.yml index 0a9a69e..2d1529d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,6 @@ install: - pip install coveralls --use-mirrors #- pip install pytest # installed by Travis by default already script: - - py.test --cov rq + - RUN_SLOW_TESTS_TOO=1 py.test --cov rq after_success: - coveralls diff --git a/run_tests b/run_tests index 50736cc..3b454d1 100755 --- a/run_tests +++ b/run_tests @@ -17,9 +17,9 @@ else safe_rg=cat fi -export ONLY_RUN_FAST_TESTS=1 +export RUN_SLOW_TESTS_TOO=1 if [ "$1" = '-f' ]; then # Poor man's argparse - unset ONLY_RUN_FAST_TESTS + unset RUN_SLOW_TESTS_TOO shift 1 fi diff --git a/tests/__init__.py b/tests/__init__.py index 93f11b3..7371a92 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -32,7 +32,7 @@ def slow(f): @wraps(f) def _inner(*args, **kwargs): - if os.environ.get('ONLY_RUN_FAST_TESTS'): + if os.environ.get('RUN_SLOW_TESTS_TOO'): f(*args, **kwargs) return _inner