-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
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'))>
- is caused by
-
PYTHON-1565 Add helpers and options for Change Streams Follow-on Work
- Closed
-
PYTHON-1699 Support running commands as aggregation
- Closed