Activity log for bug #244371

Date Who What changed Old value New value Message
2008-06-30 20:56:38 Matthew Paul Thomas bug added bug
2008-06-30 20:59:09 Matthew Paul Thomas description In pagetests, get_feedback_messages() returns a Python list of feedback messages from the given browser. Of the ~290 places in our pagetests where get_feedback_messages() is used, almost all of them print out this list one member per line: >>> for message in get_feedback_messages(user_browser.contents): ... print message or the equivalent >>> messages = get_feedback_messages(jblack_browser.contents) >>> for msg in messages: ... print msg or the slightly more acrobatic >>> print "\n".join(get_feedback_messages(user_browser.contents)) Very occasionally a test does something different, but not usefully so: >>> get_feedback_messages(browser.contents) [u'Your choice has been saved. Your translations will be removed once we completely switch to BSD license for translations.'] The only test I can see that actually does something different with the list is bug-also-affects/xx-also-affects-new-upstream.txt: >>> print get_feedback_messages(user_browser.contents)[-1] To make tests easier to write and reduce redundancy, I suggest replacing get_feedback_messages() with a print_feedback_messages() function that will do what the pagetests want. In pagetests, get_feedback_messages() returns a Python list of feedback messages from the given browser. Of the ~290 places in our pagetests where get_feedback_messages() is used, almost all of them print out this list one member per line: >>> for message in get_feedback_messages(user_browser.contents): ... print message or the equivalent >>> messages = get_feedback_messages(jblack_browser.contents) >>> for msg in messages: ... print msg or the slightly more acrobatic >>> print "\n".join(get_feedback_messages(user_browser.contents)) Very occasionally a test does something different, but not usefully so: >>> get_feedback_messages(browser.contents) [u'Your choice has been saved. Your translations will be removed once we completely switch to BSD license for translations.'] The only test I can see that actually does something different with the list is bug-also-affects/xx-also-affects-new-upstream.txt: >>> print get_feedback_messages(user_browser.contents)[-1] To make tests easier to write and reduce redundancy, I suggest replacing get_feedback_messages() with a print_feedback_messages() function that will print the feedback messages one per line.
2009-11-06 05:05:02 Curtis Hovey visibility private public
2009-11-06 05:05:06 Curtis Hovey launchpad-foundations: importance Undecided Low
2009-11-06 05:05:09 Curtis Hovey launchpad-foundations: status New Triaged
2013-09-27 04:43:09 Steve Kowalik branch linked lp:~stevenk/launchpad/banish-get_feedback_messages
2013-09-30 04:10:33 Launchpad QA Bot launchpad: assignee Steve Kowalik (stevenk)
2013-09-30 04:10:35 Launchpad QA Bot tags lp-foundations tech-debt test-system lp-foundations qa-untestable tech-debt test-system
2013-09-30 04:10:37 Launchpad QA Bot launchpad: status Triaged Fix Committed
2013-10-02 08:44:15 Colin Watson launchpad: status Fix Committed Fix Released