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:
jonnary 2019-06-24 01:01:29 +08:00 committed by chenke
parent e86a8cbb4b
commit 84beed0efc
2 changed files with 7 additions and 1 deletions

5
bindep.txt Normal file
View File

@ -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]

View File

@ -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)