Changeset 53228 in webkit


Ignore:
Timestamp:
Jan 13, 2010 6:57:19 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-13 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Fix CloseBugForLandDiff unittest to actually run
https://bugs.webkit.org/show_bug.cgi?id=33640

  • Scripts/webkitpy/mock_bugzillatool.py:
  • Scripts/webkitpy/steps/closebugforlanddiff_unittest.py:
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r53220 r53228  
     12010-01-13  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Fix CloseBugForLandDiff unittest to actually run
     6        https://bugs.webkit.org/show_bug.cgi?id=33640
     7
     8        * Scripts/webkitpy/mock_bugzillatool.py:
     9        * Scripts/webkitpy/steps/closebugforlanddiff_unittest.py:
     10
    1112010-01-12  Jon Honeycutt  <jhoneycutt@apple.com>
    212
  • trunk/WebKitTools/Scripts/webkitpy/mock_bugzillatool.py

    r53133 r53228  
    184184        return "DiffForRevision%s\nhttp://bugs.webkit.org/show_bug.cgi?id=12345" % revision
    185185
     186    def svn_revision_from_commit_text(self, commit_text):
     187        return "49824"
     188
    186189    def modified_changelogs(self):
    187190        # Ideally we'd return something more interesting here.
  • trunk/WebKitTools/Scripts/webkitpy/steps/closebugforlanddiff_unittest.py

    r53217 r53228  
    3434from webkitpy.outputcapture import OutputCapture
    3535
    36 class UpdateChangeLogsWithReviewerTest(unittest.TestCase):
     36class CloseBugForLandDiffTest(unittest.TestCase):
    3737    def test_empty_state(self):
    3838        capture = OutputCapture()
    3939        step = CloseBugForLandDiff(MockBugzillaTool(), Mock())
    40         capture.assert_outputs(self, step.run, [{}])
     40        expected_stderr = "Committed r49824: <http://trac.webkit.org/changeset/49824>\nNo bug id provided.\n"
     41        capture.assert_outputs(self, step.run, [{"commit_text" : "Mock commit text"}], expected_stderr=expected_stderr)
Note: See TracChangeset for help on using the changeset viewer.