mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-03 20:07:42 +02:00
fix decorator to disable check on travis
This commit is contained in:
parent
5508e4023a
commit
c75fd2c568
1 changed files with 8 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue