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

Unified Diff: unittests/repo_test_util.py

Issue 2934583003: [step] Remove config indirection. (Closed)
Patch Set: comments Created 3 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_modules/step/config.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 bd51de0fd03b16fbd164e2eba638859095044faa..976e845de83a1bf1216a3eebc08a2358f648a008 100644
--- a/unittests/repo_test_util.py
+++ b/unittests/repo_test_util.py
@@ -294,7 +294,7 @@ class RepoTest(unittest.TestCase):
if not os.path.exists(module_dir):
os.makedirs(module_dir)
with open(os.path.join(module_dir, '__init__.py'), 'w') as f:
- f.write('DEPS = []')
+ f.write("DEPS = ['recipe_engine/step']")
if disable_strict_coverage:
f.write('\nDISABLE_STRICT_COVERAGE = True')
with open(os.path.join(module_dir, 'api.py'), 'w') as f:
@@ -307,7 +307,7 @@ class RepoTest(unittest.TestCase):
'\n'.join([
'',
' def %s(self):' % m_name,
- ' return self.step_client.run_step(%r)' % {
+ ' return self.m.step(**%r)' % {
'name': m_name,
'cmd': m_cmd,
'ok_ret': [0],
« no previous file with comments | « recipe_modules/step/config.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698