pymongo-fastapi-crud icon indicating copy to clipboard operation
pymongo-fastapi-crud copied to clipboard

close db after dropping collection

Open knoguchi opened this issue 1 year ago • 0 comments

The shutdown event handler should close the mongodb connection after dropping the collection. The problem is more apparent with Pymongo4. With Pymongo4 the unit test fails with "Cannot use MongoClient after close" error.

knoguchi avatar May 20 '23 19:05 knoguchi