Skip to content

Commit

Permalink
Allow skipping Mongo tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbarrois committed Apr 27, 2015
1 parent e95475d commit 29de94f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ python:
- "pypy"

script:
- python setup.py test
- SKIP_MONGOENGINE=1 python setup.py test

install:
- make install-deps
Expand Down
3 changes: 3 additions & 0 deletions tests/test_mongoengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
except ImportError:
mongoengine = None

if os.environ.get('SKIP_MONGOENGINE') == 1:
mongoengine = None

if mongoengine:
from factory.mongoengine import MongoEngineFactory

Expand Down

0 comments on commit 29de94f

Please sign in to comment.