We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 609bc70 commit f5272a1Copy full SHA for f5272a1
tests/test_rejson.py
@@ -1,4 +1,3 @@
1
-import pytest
2
import redis
3
import six
4
import json
@@ -99,7 +98,7 @@ def testToggleShouldSucceed(self):
99
98
self.assertFalse(rj.jsontoggle('bool', Path.rootPath()))
100
# check non-boolean value
101
rj.jsonset('num', Path.rootPath(), 1)
102
- with pytest.raises(redis.exceptions.ResponseError):
+ with self.assertRaises(redis.exceptions.ResponseError):
103
rj.jsontoggle('num', Path.rootPath())
104
105
def testStrAppendShouldSucceed(self):
0 commit comments