Commit 2466c0fd authored by Michael Hanselmann's avatar Michael Hanselmann

cli: Change “<…>” in query output to “(…)”

This should reduce the amount of damage in case of accidential copy &
paste.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent da7e44ee
......@@ -2391,13 +2391,13 @@ class _QueryColumnFormatter:
"Found value %r for abnormal status %s" % (value, status)
if status == constants.QRFS_UNKNOWN:
return "<unknown>"
return "(unknown)"
if status == constants.QRFS_NODATA:
return "<nodata>"
return "(nodata)"
if status == constants.QRFS_UNAVAIL:
return "<unavail>"
return "(unavail)"
raise NotImplementedError("Unknown status %s" % status)
......
......@@ -394,9 +394,9 @@ class TestFormatQueryResult(unittest.TestCase):
separator="|"),
(cli.QR_UNKNOWN, [
"ID|unk|Unavail|NoData",
"1|<unknown>|N|",
"2|<unknown>|<nodata>|x",
"3|<unknown>|N|<unavail>",
"1|(unknown)|N|",
"2|(unknown)|(nodata)|x",
"3|(unknown)|N|(unavail)",
]))
def testNoData(self):
......@@ -448,8 +448,8 @@ class TestFormatQueryResult(unittest.TestCase):
separator="|"),
(cli.QR_INCOMPLETE, [
"1|N|",
"2|<nodata>|x",
"3|N|<unavail>",
"2|(nodata)|x",
"3|N|(unavail)",
]))
def testInvalidFieldType(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment