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

Unified Diff: unittests/package_test.py

Issue 2071443003: Introduce different repo types (git and gitiles) (Closed) Base URL: https://github.com/luci/recipes-py.git@master
Patch Set: rename Created 4 years, 6 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
« no previous file with comments | « recipe_engine/unittests/fetch_test.py ('k') | unittests/repo_test_util.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unittests/package_test.py
diff --git a/unittests/package_test.py b/unittests/package_test.py
index b78e5c5a9a83779e9262108c395e49ee5ed0fb69..56c5b8cdccce8039efdf56062968c4ee6ebfd4eb 100755
--- a/unittests/package_test.py
+++ b/unittests/package_test.py
@@ -52,8 +52,7 @@ class TestGitRepoSpec(repo_test_util.RepoTest):
def test_commit_infos(self):
repos = self.repo_setup({'a': []})
- spec = package.GitRepoSpec(
- 'a', repos['a']['root'], 'master', repos['a']['revision'], '')
+ spec = self.get_git_repo_spec(repos['a'])
self.assertEqual(
[],
[ci.dump() for ci in spec.commit_infos(self._context, 'HEAD')])
@@ -94,8 +93,7 @@ class TestGitRepoSpec(repo_test_util.RepoTest):
def test_raw_updates(self):
repos = self.repo_setup({'a': []})
- spec = package.GitRepoSpec(
- 'a', repos['a']['root'], 'master', repos['a']['revision'], '')
+ spec = self.get_git_repo_spec(repos['a'])
self.assertEqual([], spec.raw_updates(self._context, 'HEAD'))
c1 = self.commit_in_repo(repos['a'], message='c1')
@@ -121,8 +119,7 @@ class TestGitRepoSpec(repo_test_util.RepoTest):
def test_get_more_recent_revision(self):
repos = self.repo_setup({'a': []})
- spec = package.GitRepoSpec(
- 'a', repos['a']['root'], 'master', repos['a']['revision'], '')
+ spec = self.get_git_repo_spec(repos['a'])
c1 = self.commit_in_repo(repos['a'], message='c1')
c2 = self.commit_in_repo(repos['a'], message='c2')
« no previous file with comments | « recipe_engine/unittests/fetch_test.py ('k') | unittests/repo_test_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698