Added switch_db method to document instances (#106)
This commit is contained in:
parent
e5e88d792e
commit
ea46edf50a
5 changed files with 94 additions and 5 deletions
|
|
@ -94,6 +94,7 @@ class ConnectionTest(unittest.TestCase):
|
|||
self.assertEqual(d, date_doc.the_date)
|
||||
|
||||
def test_switch_db_context_manager(self):
|
||||
connect('mongoenginetest')
|
||||
register_connection('testdb-1', 'mongoenginetest2')
|
||||
|
||||
class Group(Document):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue