mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-04 20:37:48 +02:00
adding a decorator to disable slow tests
if env var LCNOSLOW=yes, the slowest tests are disable
This commit is contained in:
parent
f967630043
commit
52557afa6a
1 changed files with 8 additions and 0 deletions
|
@ -6,3 +6,11 @@ def travis_disabled(f):
|
||||||
return _decorator
|
return _decorator
|
||||||
else:
|
else:
|
||||||
return f
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue