mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
manifest_xml: cleanup of contactinfo test for readability with f-strings.
Tested the code with the following commands. $ ./run_tests -v Bug: [google internal] b/186220520. Change-Id: I1c0f8958ff4c615707eec218250e8de753ec6562 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/305282 Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Raman Tenneti <rtenneti@google.com>
This commit is contained in:
parent
219431e1c9
commit
2f8fdbecde
@ -579,4 +579,6 @@ class ContactinfoElementTests(ManifestParseTestCase):
|
|||||||
self.assertEqual(manifest.contactinfo['bugurl'], bugurl)
|
self.assertEqual(manifest.contactinfo['bugurl'], bugurl)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
manifest.ToXml().toxml(),
|
manifest.ToXml().toxml(),
|
||||||
f"""<?xml version="1.0" ?><manifest><contactinfo bugurl="{bugurl}"/></manifest>""")
|
'<?xml version="1.0" ?><manifest>'
|
||||||
|
f'<contactinfo bugurl="{bugurl}"/>'
|
||||||
|
'</manifest>')
|
||||||
|
Loading…
Reference in New Issue
Block a user