Fix uint test test_json_format and Solve pep8 msgfmt error
For json format we only need check the json result. For pep8 error: xargs: msgfmt: No such file or directory ERROR: InvocationError for command /bin/bash -c 'find senlinclient..' http://logs.openstack.org/92/666992/2/gate/openstack-tox-pep8/fdbc082/job-output.txt.gz We need to add bindep.txt, like neutron: https://github.com/openstack/neutron/blob/master/bindep.txt#L5 Co-Authored-By: chenker <chen.ke14@zte.com.cn> Change-Id: Ifb2d2bb3a1043ab1a4c94d30029bb920b4627a31
This commit is contained in:
parent
e86a8cbb4b
commit
84beed0efc
|
@ -0,0 +1,5 @@
|
|||
# This file contains runtime (non-python) dependencies
|
||||
# More info at: http://docs.openstack.org/infra/bindep/readme.html
|
||||
|
||||
# tools/misc-sanity-checks.sh validates .po[t] files
|
||||
gettext [test]
|
|
@ -51,7 +51,8 @@ class TestFormats(utils.TestCommand):
|
|||
|
||||
self.cmd.run(parsed_args)
|
||||
|
||||
self.assertEqual(expected, self.app.stdout.make_string())
|
||||
self.assertEqual(jsonutils.loads(expected),
|
||||
jsonutils.loads(self.app.stdout.make_string()))
|
||||
|
||||
def test_yaml_format(self):
|
||||
self.cmd = ShowYaml(self.app, None)
|
||||
|
|
Loading…
Reference in New Issue