|
@@ -1,6 +1,5 @@
|
1
|
1
|
# -*- coding: utf-8 -*-
|
2
|
2
|
import unittest
|
3
|
|
-from pymongo import MongoClient
|
4
|
3
|
from plugins.mongodb_datasource.migration_handler import *
|
5
|
4
|
|
6
|
5
|
class MongoDbMigrationHandlerTestCase(unittest.TestCase):
|
|
@@ -19,6 +18,8 @@ class MongoDbMigrationHandlerTestCase(unittest.TestCase):
|
19
|
18
|
with self.assertRaises(MigrationHandlerError):
|
20
|
19
|
MongoDbMigrationHandler(bad_connection_args_dict)
|
21
|
20
|
|
|
21
|
+ ## @todo pass the connection arguments in the settings
|
|
22
|
+ @unittest.skip
|
22
|
23
|
def test_init_db(self):
|
23
|
24
|
correct_connection_args = {'host': 'localhost', 'port': 28015, 'username': 'lodel_admin', 'password': 'lapwd', 'db_name': 'lodel'}
|
24
|
25
|
migration_handler = MongoDbMigrationHandler(correct_connection_args)
|