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

Unified Diff: unittests/repo_test_util.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 | « unittests/package_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unittests/repo_test_util.py
diff --git a/unittests/repo_test_util.py b/unittests/repo_test_util.py
index af5c98408fc049f4992a844e0715bd7e91bafc33..168d73289b6627e1ad35db2f97ac5fe53e534871 100644
--- a/unittests/repo_test_util.py
+++ b/unittests/repo_test_util.py
@@ -19,6 +19,7 @@ sys.path.insert(0, os.path.join(ROOT_DIR, 'recipe_engine', 'third_party'))
sys.path.insert(0, ROOT_DIR)
+from recipe_engine import fetch
from recipe_engine import package
from recipe_engine import package_pb2
@@ -63,7 +64,12 @@ class RepoTest(unittest.TestCase):
def get_git_repo_spec(self, repo):
"""Returns GitRepoSpec corresponding to given repo."""
return package.GitRepoSpec(
- repo['name'], repo['root'], 'master', repo['revision'], '')
+ repo['name'],
+ repo['root'],
+ 'master',
+ repo['revision'],
+ '',
+ fetch.GitBackend())
def get_root_repo_spec(self, repo):
"""Returns RootRepoSpec corresponding to given repo."""
« no previous file with comments | « unittests/package_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698