correct SLOW env var, run slow tests on ci

main
Samuel Colvin 9 years ago
parent aada162a4d
commit fa48751fed

@ -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

@ -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

@ -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

Loading…
Cancel
Save