michaelkryukov / mongomock_motor

Library for mocking AsyncIOMotorClient built on top of mongomock.
MIT License
102 stars 24 forks source link

__new__() got an unexpected keyword argument 'datetime_conversion' #37

Closed DoanLoi closed 1 year ago

DoanLoi commented 1 year ago
def is_supported(custom_codec_options):

    if not custom_codec_options:
        return None
  return CodecOptions(**custom_codec_options._asdict())

E TypeError: new() got an unexpected keyword argument 'datetime_conversion'

DoanLoi commented 1 year ago

is it due to the version of mongo mock??

michaelkryukov commented 1 year ago

https://github.com/mongomock/mongomock/issues/810