mongo-python-driver/test/crud/v2/replaceOne-validation.json
Shane Harvey 14ac9a3fde
PYTHON-2547 Change estimated_document_count() to use $collStats instead of count on 4.9+ (#606)
Fix CRUD v1 aggregate $out change for
3f3a3c225d
PYTHON-2301 ValueError is an acceptable error for CRUD v2 error:true tests
2021-04-28 15:02:06 -07:00

42 lines
695 B
JSON

{
"data": [
{
"_id": 1,
"x": 11
}
],
"tests": [
{
"description": "ReplaceOne prohibits atomic modifiers",
"operations": [
{
"object": "collection",
"name": "replaceOne",
"arguments": {
"filter": {
"_id": 1
},
"replacement": {
"$set": {
"x": 22
}
}
},
"error": true
}
],
"expectations": [],
"outcome": {
"collection": {
"data": [
{
"_id": 1,
"x": 11
}
]
}
}
}
]
}