Skip to content

Commit 70e4f6e

Browse files
committed
Added an operation on pipeline test for non-existing key JSON.GET (issue #44)
1 parent 51fda72 commit 70e4f6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_rejson.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,10 @@ def testPipelineShouldSucceed(self):
167167
p = rj.pipeline()
168168
p.jsonset('foo', Path.rootPath(), 'bar')
169169
p.jsonget('foo')
170+
p.jsonget('bar')
170171
p.jsondel('foo')
171172
p.exists('foo')
172-
self.assertListEqual([True, 'bar', 1, False], p.execute())
173+
self.assertListEqual([True, 'bar', None, 1, False], p.execute())
173174

174175
def testCustomEncoderDecoderShouldSucceed(self):
175176
"Test a custom encoder and decoder"

0 commit comments

Comments
 (0)