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

Add db.aggregate/db.watch/client.watch to synchro tests

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.1
    • Affects Version/s: None
    • Component/s: Tests
    • None

      db.aggregate/db.watch/client.watch are missing from the synchro test objects:

      ======================================================================
      ERROR: test_database_aggregation (test.test_database.TestDatabaseAggregation)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Users/shane/git/motor/.tox/synchro/tmp/mongo-python-driver/test/__init__.py", line 432, in wrap
          return f(*args, **kwargs)
        File "/Users/shane/git/motor/.tox/synchro/tmp/mongo-python-driver/test/test_database.py", line 1032, in test_database_aggregation
          with self.admin.aggregate(self.pipeline) as cursor:
        File "synchro/__init__.py", line 413, in __getattr__
          return Collection(self, name, delegate=getattr(self.delegate, name))
        File "synchro/__init__.py", line 440, in __init__
          " got %s" % repr(self.delegate))
      TypeError: Expected to get synchro Collection from Database, got <bound method MotorDatabase.aggregate of MotorDatabase(Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True, driver=DriverInfo(name=u'Motor', version=u'2.1.0.dev0', platform=u'Tornado 5.1.1'), replicaset='d29e93aa-601f-45cf-b303-732664f98c2d'), u'admin'))>
      

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: