diff --git a/.travis.yml b/.travis.yml index 541c0c0f..a5606845 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,10 +19,11 @@ before_install: virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION" source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate" fi + sudo apt-get install -q libgeos-dev libgeos install: - | if [ "$TEST_TYPE" = build ]; then - pip install pytest pytest-cov pytest-benchmark coveralls six pytz iso8601 + pip install pytest pytest-cov pytest-benchmark coveralls six pytz iso8601 shapely pip install -e . python setup.py develop elif [ "$TEST_TYPE" = lint ]; then diff --git a/graphene/types/tests/test_geo.py b/graphene/types/tests/test_geo.py index c61ccf8a..33b0e68c 100644 --- a/graphene/types/tests/test_geo.py +++ b/graphene/types/tests/test_geo.py @@ -1,5 +1,7 @@ import pytest +pytest.importorskip("shapely") + from ..geo import Point from ..objecttype import ObjectType from ..schema import Schema