We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 023a034 commit 38007dfCopy full SHA for 38007df
1 file changed
tests/test_new.py
@@ -42,6 +42,16 @@ def test_set_new_list():
42
assert dict['a'][0] is None
43
44
45
+def test_set_list_with_dict_int_ambiguity():
46
+ d = {"list": [{"root": {"1": {"k": None}}}]}
47
+
48
+ dpath.new(d, "list/0/root/1/k", "new")
49
50
+ expected = {"list": [{"root": {"1": {"k": "new"}}}]}
51
52
+ assert d == expected
53
54
55
def test_set_new_list_path_with_separator():
56
# This test kills many birds with one stone, forgive me
57
dict = {
0 commit comments