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

Unified Diff: appengine/findit/common/test/repo_util_test.py

Issue 2432113002: [Findit] Add local_git_repository (Closed)
Patch Set: . Created 4 years, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: appengine/findit/common/test/repo_util_test.py
diff --git a/appengine/findit/common/test/repo_util_test.py b/appengine/findit/common/test/repo_util_test.py
index a3fe9e93541791aeffabaa99616d22e1624ed2e2..696c6a34eed7047e790d920400f7e13d6ce563bf 100644
--- a/appengine/findit/common/test/repo_util_test.py
+++ b/appengine/findit/common/test/repo_util_test.py
@@ -133,33 +133,3 @@ class RepoUtilTest(testing.AppengineTestCase):
reverted_revision = repo_util.GetRevertedRevision(message)
self.assertIsNone(reverted_revision)
-
- def testGetRepoToCloneUrlDict(self):
- def _MockUrlOpen(*_):
- output = StringIO.StringIO()
- repo_dict = {
- 'proj1': {
- 'clone_url': 'https://chromium.googlesource.com/proj1',
- 'description': 'blabla1',
- 'name': 'proj1'
- },
- 'proj2': {
- 'clone_url': 'https://chromium.googlesource.com/proj2',
- 'description': 'blabla2',
- 'name': 'proj2'
- }
- }
- output.write(')]}\'\n')
- output.write(json.dumps(repo_dict))
- output.seek(0)
- return output
-
- self.mock(urllib2, 'urlopen', _MockUrlOpen)
-
- expected_repo_to_clone_url = {
- 'proj1': 'https://chromium.googlesource.com/proj1',
- 'proj2': 'https://chromium.googlesource.com/proj2'
- }
-
- self.assertEqual(repo_util.GetRepoToCloneUrlDict('host_url'),
- expected_repo_to_clone_url)

Powered by Google App Engine
This is Rietveld 408576698