Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: appengine/findit/libs/gitiles/test/commit_util_test.py

Issue 2538373003: [Culprit-Finder] Merge lib/ to libs/. (Closed)
Patch Set: . Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import json 5 import json
6 import StringIO 6 import StringIO
7 from testing_utils import testing 7 from testing_utils import testing
8 import textwrap 8 import textwrap
9 import urllib2 9 import urllib2
10 10
11 from lib.gitiles import commit_util 11 from libs.gitiles import commit_util
12 12
13 13
14 class CodeReviewUtilTest(testing.AppengineTestCase): 14 class CodeReviewUtilTest(testing.AppengineTestCase):
15 15
16 def testExtractCommitPositionAndCodeReviewUrl(self): 16 def testExtractCommitPositionAndCodeReviewUrl(self):
17 testcases = [ 17 testcases = [
18 { 18 {
19 'message': 19 'message':
20 'balabala...\n' 20 'balabala...\n'
21 '\n' 21 '\n'
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 def testGetRevertedRevisionNoRevertedCL(self): 126 def testGetRevertedRevisionNoRevertedCL(self):
127 message = ( 127 message = (
128 'Test for not revert cl\n\n' 128 'Test for not revert cl\n\n'
129 'TBR=test@chromium.org\nNOPRESUBMIT=true\n' 129 'TBR=test@chromium.org\nNOPRESUBMIT=true\n'
130 'NOTREECHECKS=true\nNOTRY=true\nBUG=424661\n\n' 130 'NOTREECHECKS=true\nNOTRY=true\nBUG=424661\n\n'
131 'Review URL: https://codereview.chromium.org/1161773008\n\n' 131 'Review URL: https://codereview.chromium.org/1161773008\n\n'
132 'Cr-Commit-Position: refs/heads/master@{#332062}\n') 132 'Cr-Commit-Position: refs/heads/master@{#332062}\n')
133 133
134 reverted_revision = commit_util.GetRevertedRevision(message) 134 reverted_revision = commit_util.GetRevertedRevision(message)
135 self.assertIsNone(reverted_revision) 135 self.assertIsNone(reverted_revision)
OLDNEW
« no previous file with comments | « appengine/findit/libs/gitiles/test/change_log_test.py ('k') | appengine/findit/libs/gitiles/test/diff_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698