2015-06-17 23:59:44 +02:00
|
|
|
import os
|
|
|
|
def travis_disabled(f):
|
|
|
|
def _decorator(f):
|
2019-02-07 20:55:50 +01:00
|
|
|
print('test has been disabled on travis')
|
2015-06-17 23:59:44 +02:00
|
|
|
if 'TRAVIS' in os.environ and os.environ['TRAVIS'] == 'yes':
|
|
|
|
return _decorator
|
|
|
|
else:
|
|
|
|
return f
|
2016-07-29 07:34:58 +02:00
|
|
|
|
|
|
|
def slow_disabled(f):
|
|
|
|
def _decorator(f):
|
2019-02-07 20:55:50 +01:00
|
|
|
print('test has been disabled by env var LCNOSLOW')
|
2016-07-29 07:34:58 +02:00
|
|
|
if 'LCNOSLOW' in os.environ and os.environ['LCNOSLOW'] == 'yes':
|
|
|
|
return _decorator
|
|
|
|
else:
|
|
|
|
return f
|