f+ ddlmZddlmZmZddlmZ  ddl mZ ddl mZ ddlmZmZdZGd d e Zd Zd Zy #e$rdZYwxYw))mock)Database Collection)Cursor)r)r)GridOut GridOutCursorTFc>eZdZfdZfdZeZdZdZdZxZ S)_MongoMockGridOutCursorcV||_tt||jg|i|yN)(_MongoMockGridOutCursor__root_collectionsuperr __init__files)self collectionargskwargs __class__s Y/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/mongomock/gridfs.pyrz _MongoMockGridOutCursor.__init__s,!+ %t5j6F6FXXQWXcltt| }t|j||j S)N) file_documentsession)rr nextPyMongoGridOutr r)r next_filers rrz_MongoMockGridOutCursor.nexts314=?   " ")T\\S Srctr NotImplementedErrorrrrs r add_optionz"_MongoMockGridOutCursor.add_option !##rctr rr!s r remove_optionz%_MongoMockGridOutCursor.remove_option"r#rc0t|j|S)N)r)r r )rrs r _clone_basez#_MongoMockGridOutCursor._clone_base%s&t'='=wOOr) __name__ __module__ __qualname__rr__next__r"r%r' __classcell__)rs@rr r s&YS H$$Prr c^t|trt|g|i|St|g|i|Sr ) isinstanceMongoMockCollectionr PyMongoGridOutCursor)rrrs r_create_grid_out_cursorr1)s7*12&zCDCFCC  ?EEGrN)unittestr mongomockrr6rr/mongomock.collectionrMongoMockCursorpymongo.collectionr8pymongo.databaser5gridfs.grid_filerrrr0r3 ImportErrorr r1r:r9rrrCsQV:B<aMPoP.= HIMs>AA