Remove jsonutils usage
Panko does not depends on oslo.serialization while it is using it. However, since it does not really need it, let's use the regular json attribute anyway. Change-Id: I63e5927c625d0a080bd6a9ea77ff939253039d5e
This commit is contained in:
parent
92e25f55db
commit
70219e3188
|
@ -16,7 +16,6 @@
|
|||
|
||||
import datetime
|
||||
|
||||
from oslo_serialization import jsonutils
|
||||
from oslo_utils import uuidutils
|
||||
import webtest.app
|
||||
|
||||
|
@ -762,7 +761,7 @@ class TestEventSort(EventTestBase):
|
|||
"':', or only sort key specified and sort dir will "
|
||||
"be default 'asc', the supported sort keys are: "
|
||||
"('message_id', 'generated')",
|
||||
jsonutils.loads(resp.body)['error_message']
|
||||
resp.json['error_message']
|
||||
['faultstring'])
|
||||
|
||||
def test_invalid_sort_dir(self):
|
||||
|
@ -776,7 +775,7 @@ class TestEventSort(EventTestBase):
|
|||
"with ':', or only sort key specified and sort dir "
|
||||
"will be default 'asc', the supported sort "
|
||||
"directions are: ('asc', 'desc')",
|
||||
jsonutils.loads(resp.body)['error_message']
|
||||
resp.json['error_message']
|
||||
['faultstring'])
|
||||
|
||||
def test_sort_message_id(self):
|
||||
|
|
Loading…
Reference in New Issue