Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-609

Add GridFS class to synchro

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: synchrotest
    • None

      test.test_transactions.TestTransactions.test_gridfs_does_not_support_transactions fails without this class:

       ERROR: __init__() got an unexpected keyword argument 'session' (builtins.TypeError)
       Traceback (most recent call last):
         File "/opt/python/3.7/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
           yield
         File "/opt/python/3.7/lib/python3.7/unittest/case.py", line 628, in run
           testMethod()
         File "/data/mci/3eb36e00c3a36ed2604ccd0753f0c976/src/.tox/synchro37/tmp/mongo-python-driver/test/__init__.py", line 444, in wrap
           return f(*args, **kwargs)
         File "/data/mci/3eb36e00c3a36ed2604ccd0753f0c976/src/.tox/synchro37/tmp/mongo-python-driver/test/test_transactions.py", line 288, in test_gridfs_does_not_support_transactions
           op(*args, session=s)
         File "/data/mci/3eb36e00c3a36ed2604ccd0753f0c976/src/.tox/synchro37/tmp/mongo-python-driver/test/test_transactions.py", line 256, in gridfs_find
           return gfs.find(*args, **kwargs).next()
         File "/data/mci/3eb36e00c3a36ed2604ccd0753f0c976/src/.tox/synchro37/tmp/mongo-python-driver/gridfs/__init__.py", line 372, in find
           return GridOutCursor(self.__collection, *args, **kwargs)
       TypeError: __init__() got an unexpected keyword argument 'session'
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            prashant.mital Prashant Mital (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: