it can be easly implemented with: <pre> mm = mongomock.MongoClient()['testDatabase'] ... processing ... collectionNames = [ x for x in mm._collection_accesses.keys()] </pre>
Activity
pcorpet commentedon Oct 3, 2020
Hi @engFelipeMonteiro , thanks for the bug report.
I believe that
db.getCollectionNamesis using the mongo script syntax. Pymongo is usingdb.list_collection_nameswhich is implemented inpymongo.Feel free to reopen with more details if I got it wrong.