jenkins-bot has submitted this change and it was merged.
Change subject: [IMPROV] site_detect_tests: Make output tabular ......................................................................
[IMPROV] site_detect_tests: Make output tabular
This adds whitespace at the end of the URL to make the width always the same and easier to identify where the URL ends and the message begins.
Change-Id: I8e7cd26c0580cb750e358bfe46f5ab3b2f5a37b1 --- M tests/site_detect_tests.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/site_detect_tests.py b/tests/site_detect_tests.py index d1a4bf5..bb3334d 100644 --- a/tests/site_detect_tests.py +++ b/tests/site_detect_tests.py @@ -62,8 +62,9 @@
sorted_all = sorted((norm(url) for url in self.all), key=lambda item: item[0]) + width = max(len(item[1]) for item in sorted_all) print('Results:\n' + '\n'.join( - '{0} {1} : {2}'.format(PREFIXES[i[0]], i[1], i[2]) + '{0} {1:{3}} : {2}'.format(PREFIXES[i[0]], i[1], i[2], width) for i in sorted_all))
def _wiki_detection(self, url, result):