We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b5e0f2 commit 79f94c8Copy full SHA for 79f94c8
1 file changed
test/correctness/smoke/test_update.py
@@ -24,6 +24,20 @@
24
from collections import OrderedDict
25
import pytest
26
27
+@pytest.mark.xfail
28
+def test_update_array_containing_none_value(fixture_collection):
29
+ collection = fixture_collection
30
+
31
+ collection.insert({'A': [1, None]})
32
33
+ docCount = collection.find( {'A': {'$in': [ None]}}).count()
34
+ assert docCount == 1, "Expect 1 documents before the update but got {}".format(docCount)
35
36
+ collection.update({'A': {'$size': 2}} , OrderedDict([('$pop', {'A': -1})]))
37
38
39
+ assert docCount == 1, "Expect 1 documents after the update but got {}".format(docCount)
40
41
def test_addToSet_with_none_value(fixture_collection):
42
collection = fixture_collection
43
0 commit comments