mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
fix decorator to disable check on travis
This commit is contained in:
parent
5508e4023a
commit
c75fd2c568
8
tests/disable.py
Normal file
8
tests/disable.py
Normal 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
|
Loading…
Reference in New Issue
Block a user