mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-11 12:08:51 +01:00
52557afa6a
if env var LCNOSLOW=yes, the slowest tests are disable
17 lines
459 B
Python
17 lines
459 B
Python
import os
|
|
def travis_disabled(f):
|
|
def _decorator(f):
|
|
print 'test has been disabled on travis'
|
|
if 'TRAVIS' in os.environ and os.environ['TRAVIS'] == 'yes':
|
|
return _decorator
|
|
else:
|
|
return f
|
|
|
|
def slow_disabled(f):
|
|
def _decorator(f):
|
|
print 'test has been disabled by env var LCNOSLOW'
|
|
if 'LCNOSLOW' in os.environ and os.environ['LCNOSLOW'] == 'yes':
|
|
return _decorator
|
|
else:
|
|
return f
|