Closed jotradovec closed 1 year ago
@michaelkryukov Thank you for the reply.
But it seems to me that the code uses session without additional options. So the exception should pop up only, when I use options, right? Because coroutine async start_session(causal_consistency: Optional[bool] = None, default_transaction_options: Optional[pymongo.client_session.TransactionOptions] = None
. So by default the options are None.
As I said, error message is pretty unambiguous (https://github.com/mongomock/mongomock/blob/ca41f27161c50d83d5ef8c899623084dd6f09a1d/mongomock/mongo_client.py#L180)
Yes, I see. :D You were right. And it looks like they are not going to support any time soon, because there are no new commits in the last 10 months.
When I tried to use start_session with MongoMockMotor it seemed to me, that it is not working. Was it fail in my code or it is not supported yet? Expected working code example:
start_session on Motor docs: https://motor.readthedocs.io/en/stable/api-asyncio/asyncio_motor_client.html