Support ruby through a combination of rbenv, ruby-build, and GEM_HOME

This commit is contained in:
Anthony Sottile 2014-05-03 23:24:28 -07:00
parent 390af24c44
commit b381bb68b7
10 changed files with 124 additions and 24 deletions

View file

@ -1,6 +1,7 @@
import jsonschema
import os
import os.path
import pytest
import shutil
from plumbum import local
@ -41,3 +42,10 @@ def is_valid_according_to_schema(obj, schema):
return True
except jsonschema.exceptions.ValidationError:
return False
def skipif_slowtests_false(func):
return pytest.mark.skipif(
os.environ.get('slowtests') == 'false',
reason='slowtests=false',
)(func)