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

Side by Side Diff: appengine/findit/lib/gitiles/test/gitiles_repository_test.py

Issue 2488113005: [Findit] Re-org code. (Closed)
Patch Set: Rebase. Created 4 years, 1 month 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 base64 5 import base64
6 from datetime import datetime 6 from datetime import datetime
7 import json 7 import json
8 import re 8 import re
9 9
10 from testing_utils import testing 10 from testing_utils import testing
11 11
12 # TODO(http://crbug.com/660474): Nothing in ./lib should depend on things
13 # in ./common
14 from common import retry_http_client
15 from lib.gitiles import gitiles_repository 12 from lib.gitiles import gitiles_repository
16 from lib.gitiles.change_log import ChangeLog 13 from lib.gitiles.change_log import ChangeLog
14 from libs.http import retry_http_client
17 15
18 16
19 COMMIT_MESSAGE = ('Add popover for snapshot canvas log.\n\n' 17 COMMIT_MESSAGE = ('Add popover for snapshot canvas log.\n\n'
20 'Review URL: https://codereview.chromium.org/320423004\n\n' 18 'Review URL: https://codereview.chromium.org/320423004\n\n'
21 'Review URL: https://codereview.chromium.org/328113005\n\n' 19 'Review URL: https://codereview.chromium.org/328113005\n\n'
22 'Cr-Commit-Position: refs/heads/master@{#175976}') 20 'Cr-Commit-Position: refs/heads/master@{#175976}')
23 21
24 COMMIT_LOG = """)]}' 22 COMMIT_LOG = """)]}'
25 { 23 {
26 "commit": "bcfd5a12eea05588aee98b7cf7e032d8cb5b58bb", 24 "commit": "bcfd5a12eea05588aee98b7cf7e032d8cb5b58bb",
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 changelogs = self.git_repo.GetChangeLogs('0', '2') 470 changelogs = self.git_repo.GetChangeLogs('0', '2')
473 471
474 self.assertEqual(len(changelogs), 2) 472 self.assertEqual(len(changelogs), 2)
475 473
476 def testGetWrappedGitRepositoryClass(self): 474 def testGetWrappedGitRepositoryClass(self):
477 repo = gitiles_repository.GitilesRepository( 475 repo = gitiles_repository.GitilesRepository(
478 'http://repo_url', HttpClientForGit()) 476 'http://repo_url', HttpClientForGit())
479 477
480 self.assertEqual(repo.repo_url, 'http://repo_url') 478 self.assertEqual(repo.repo_url, 'http://repo_url')
481 self.assertTrue(isinstance(repo.http_client, HttpClientForGit)) 479 self.assertTrue(isinstance(repo.http_client, HttpClientForGit))
OLDNEW
« no previous file with comments | « appengine/findit/infra_api_clients/codereview/test/rietveld_test.py ('k') | appengine/findit/libs/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698