We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e86bbb1 commit 3ba447aCopy full SHA for 3ba447a
tests/test_connection.py
@@ -54,7 +54,10 @@ def test_host_as_uri_string(self):
54
def test_host_as_list(self):
55
"""Make sure MONGODB_HOST can be a list hosts."""
56
db = MongoEngine()
57
- self.app.config['MONGODB_HOST'] = ['localhost:27017']
+ self.app.config['MONGODB_SETTINGS'] = {
58
+ 'ALIAS': 'host_list',
59
+ 'HOST': ['localhost:27017'],
60
+ }
61
self._do_persist(db)
62
63
def test_multiple_connections(self):
0 commit comments