Exemplo n.º 1
0
 def setup(self):
     try:
         import pymongo.errors
         self.fs = GridFSStorage('mongodb://localhost/gridfs_example',
                                 'testfs')
     except pymongo.errors.ConnectionFailure:
         raise SkipTest('MongoDB not running')
Exemplo n.º 2
0
    def setup(self):
        try:
            from depot.io.gridfs import GridFSStorage
        except ImportError:
            raise SkipTest('PyMongo not installed')

        self.fs = GridFSStorage('mongodb://localhost/gridfs_example', 'testfs')
Exemplo n.º 3
0
    def setup(self):
        try:
            from depot.io.gridfs import GridFSStorage
        except ImportError:
            raise SkipTest('PyMongo not installed')

        import pymongo.errors
        try:
            self.fs = GridFSStorage('mongodb://localhost/gridfs_example', 'testfs')
        except pymongo.errors.ConnectionFailure:
            raise SkipTest('MongoDB not running')
Exemplo n.º 4
0
 def setup(self):
     self.fs = GridFSStorage('mongodb://localhost/gridfs_example', 'testfs')