Skip to content

Commit 6032ba4

Browse files
committed
add a test for the case when root element is a list
1 parent 7124b06 commit 6032ba4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_create.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@
9898
{'bar': 'baz', 'qux': 42},
9999
{'bar': 'bizzle'}
100100
]}),
101+
Params(string='[1].foo',
102+
initial_data=[{'foo': 1},
103+
{'bar': 2}],
104+
insert_val=42,
105+
target=[{'foo': 1},
106+
{'foo': 42,
107+
'bar': 2}],)
101108
])
102109
def test_update_or_create(string, initial_data, insert_val, target):
103110
jsonpath = parse(string)

0 commit comments

Comments
 (0)