jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[tests] Update SequenceOutputter.format_list() to SequenceOutputter.out

SequenceOutputter.format_list() is deprecated,
the out property should be used

Change-Id: Ia1ab7631a66ae52d8fbe6e740fdd325922d9c822
---
M tests/tools_formatter_tests.py
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/tools_formatter_tests.py b/tests/tools_formatter_tests.py
index c68ac73..f44b43c 100644
--- a/tests/tools_formatter_tests.py
+++ b/tests/tools_formatter_tests.py
@@ -21,11 +21,11 @@
"""Test format method."""
options = ['foo', 'bar']
outputter = formatter.SequenceOutputter(options)
- self.assertEqual(outputter.format_list(), '\n 1 - foo\n 2 - bar\n')
+ self.assertEqual(outputter.out, '\n 1 - foo\n 2 - bar\n')
outputter.format_string = '({index} {width} {item})'
- self.assertEqual(outputter.format_list(), '\n(1 1 foo)\n(2 1 bar)\n')
+ self.assertEqual(outputter.out, '\n(1 1 foo)\n(2 1 bar)\n')
outputter.format_string = '{item}'
- self.assertEqual(outputter.format_list(), '\nfoo\nbar\n')
+ self.assertEqual(outputter.out, '\nfoo\nbar\n')


# TODO: add tests for background colors.

To view, visit change 692274. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ia1ab7631a66ae52d8fbe6e740fdd325922d9c822
Gerrit-Change-Number: 692274
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged