Removed dependency on flask_pymongo

This commit is contained in:
2018-07-13 17:08:06 +02:00
parent 559e212c55
commit 8a0f582a80
2 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ import unittest
import mock
from bson import ObjectId
import flask_pymongo.wrappers
import pymongo.database
# Required to mock this module, otherwise 'pillar.api.file_storage' doesn't have
# the attribute 'moving'
@@ -13,7 +13,7 @@ class NodeMoverTest(unittest.TestCase):
def setUp(self):
from pillar.api.nodes import moving
self.db = mock.MagicMock(spec=flask_pymongo.wrappers.Database)
self.db = mock.MagicMock(spec=pymongo.database.Database)
self.mover = moving.NodeMover(db=self.db)
def test_file_generator(self):