| 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..bda73818aba2486a846a0ef9f987687dfa5472c7 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,28 +138,28 @@ 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()
|
| - 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):
|
| - def run(self, _, __):
|
| + def run(self, _api, _rt):
|
| return None
|
|
|
| with self.assertRaises(AssertionError):
|
| - engine.run(FakeScript(), api, properties)
|
| + engine.run(FakeScript(), api)
|
|
|
| def test_subannotations(self):
|
| proc = subprocess.Popen(
|
|
|