Closed yupeng0921 closed 10 years ago
Seems mongoengine changed its exception type, when try to save a duplicate key, it will raise OperationError, not NotUniqueError, so check both of the two exceptions, or py.test will fail.
Seems mongoengine changed its exception type, when try to save a duplicate key, it will raise OperationError, not NotUniqueError, so check both of the two exceptions, or py.test will fail.