Chromium Code Reviews| Index: recipe_engine/unittests/run_test.py |
| diff --git a/recipe_engine/unittests/run_test.py b/recipe_engine/unittests/run_test.py |
| index 1f3795aacb6fae3ab586c33f06957d222408a6a7..711a858801bb2263f2fbad0f307b19e7912fe734 100755 |
| --- a/recipe_engine/unittests/run_test.py |
| +++ b/recipe_engine/unittests/run_test.py |
| @@ -17,6 +17,7 @@ from test_env import BASE_DIR |
| import recipe_engine.run |
| import recipe_engine.simulation_test as simulation_test |
| import recipe_engine.step_runner |
| +import recipe_engine.util |
| from recipe_engine import requests_ssl |
| from recipe_engine import recipe_test_api |
| import mock |
| @@ -137,20 +138,20 @@ class RunTest(unittest.TestCase): |
| def test_run_unconsumed(self): |
| with recipe_engine.stream.NoopStreamEngine() as stream_engine: |
| - properties = {} |
| + rt = recipe_engine.run.Runtime( |
| + {}, |
| + platform=recipe_engine.util.Platform( |
| + name='linux', arch='testmachine', bits=64)) |
| test_data = recipe_engine.recipe_test_api.TestData() |
| test_data.expect_exception('SomeException') |
| api = mock.Mock() |
| - api._engine = mock.Mock() |
|
dnj
2016/10/13 01:08:23
This was actually vestigial from before "_engine"
|
| - api._engine.properties = properties |
| - |
| annotator = simulation_test.SimulationAnnotatorStreamEngine() |
| engine = recipe_engine.run.RecipeEngine( |
| recipe_engine.step_runner.SimulationStepRunner( |
| stream_engine, test_data, annotator), |
| - properties, |
| + rt, |
| None) |
| class FakeScript(object): |
| @@ -158,7 +159,7 @@ class RunTest(unittest.TestCase): |
| return None |
| with self.assertRaises(AssertionError): |
| - engine.run(FakeScript(), api, properties) |
| + engine.run(FakeScript(), api, rt.properties) |
| def test_subannotations(self): |
| proc = subprocess.Popen( |