Fix CRUD v1 aggregate $out change for
3f3a3c225d
PYTHON-2301 ValueError is an acceptable error for CRUD v2 error:true tests
42 lines
695 B
JSON
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
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|