summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-09-14 13:21:53 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-09-14 13:21:53 +0200
commitda715e33bbba0428f0be25e8cc3ff4e88ec72bbb (patch)
tree59f94f29651a8cf7eef675960385084f2ff7d1d7 /tests
parente48fb600f40e3d3f9e3b13f70a2196a53c64d4ec (diff)
downloadfactory-boy-da715e33bbba0428f0be25e8cc3ff4e88ec72bbb.tar
factory-boy-da715e33bbba0428f0be25e8cc3ff4e88ec72bbb.tar.gz
Fix mongoengine connection.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_mongoengine.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_mongoengine.py b/tests/test_mongoengine.py
index c69138f..f26eb85 100644
--- a/tests/test_mongoengine.py
+++ b/tests/test_mongoengine.py
@@ -49,7 +49,7 @@ class MongoEngineTestCase(unittest.TestCase):
db_name = os.environ.get('MONGO_DATABASE', 'factory_boy_test')
db_host = os.environ.get('MONGO_HOST', 'localhost')
- db_port = os.environ.get('MONGO_PORT', '27017')
+ db_port = int(os.environ.get('MONGO_PORT', '27017'))
@classmethod
def setUpClass(cls):