From 29de94f46b356bef181e8cf02d6cb3ae4ac52075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Mon, 27 Apr 2015 16:39:10 +0200 Subject: Allow skipping Mongo tests. --- .travis.yml | 2 +- tests/test_mongoengine.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ed331d4..e1600bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ python: - "pypy" script: - - python setup.py test + - SKIP_MONGOENGINE=1 python setup.py test install: - make install-deps diff --git a/tests/test_mongoengine.py b/tests/test_mongoengine.py index 6fa4125..7badd43 100644 --- a/tests/test_mongoengine.py +++ b/tests/test_mongoengine.py @@ -31,6 +31,9 @@ try: except ImportError: mongoengine = None +if os.environ.get('SKIP_MONGOENGINE') == 1: + mongoengine = None + if mongoengine: from factory.mongoengine import MongoEngineFactory -- cgit v1.2.3