1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-12-22 12:50:18 +01:00

fix decorator to disable check on travis

This commit is contained in:
kakwa 2015-06-17 23:59:44 +02:00
parent 5508e4023a
commit c75fd2c568

8
tests/disable.py Normal file
View File

@ -0,0 +1,8 @@
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