Make uri style connections use parameters not specified in the uri, as well as other keyword arguments

This commit is contained in:
Robert Kajic
2012-03-02 15:33:38 +01:00
parent 32fc4152a7
commit 3c7bf50089
2 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ class ConnectionTest(unittest.TestCase):
c.admin.authenticate("admin", "password")
c.mongoenginetest.add_user("username", "password")
self.assertRaises(ConnectionError, connect, "testdb_uri_bad", host='mongodb://test:password@localhost/mongoenginetest')
self.assertRaises(ConnectionError, connect, "testdb_uri_bad", host='mongodb://test:password@localhost')
connect("testdb_uri", host='mongodb://username:password@localhost/mongoenginetest')