Skip to content

Commit 3ba447a

Browse files
committed
add alias to settings in test_host_as_list to truly test the connection
1 parent e86bbb1 commit 3ba447a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_connection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ def test_host_as_uri_string(self):
5454
def test_host_as_list(self):
5555
"""Make sure MONGODB_HOST can be a list hosts."""
5656
db = MongoEngine()
57-
self.app.config['MONGODB_HOST'] = ['localhost:27017']
57+
self.app.config['MONGODB_SETTINGS'] = {
58+
'ALIAS': 'host_list',
59+
'HOST': ['localhost:27017'],
60+
}
5861
self._do_persist(db)
5962

6063
def test_multiple_connections(self):

0 commit comments

Comments
 (0)