From a37341667eeed2bb318557e729a9497e00b3466c Mon Sep 17 00:00:00 2001 From: Mikhail Dubov Date: Tue, 27 Jan 2015 18:54:05 +0300 Subject: [PATCH] Switch to the new Rally API Use the new API classes in CLI and other parts of Rally code (still leaving old API methods for compability). ToDo in next patches: * Remove old API methods * add get(), list() methods to API. Change-Id: I1eca518bca8b383e3e6ce05e99251c2d954f1b4e --- tests/unit/rally_jobs/test_jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/rally_jobs/test_jobs.py b/tests/unit/rally_jobs/test_jobs.py index e3b2af15..67b59af0 100644 --- a/tests/unit/rally_jobs/test_jobs.py +++ b/tests/unit/rally_jobs/test_jobs.py @@ -51,7 +51,7 @@ class RallyJobsTestCase(test.TestCase): "args file %s must be dict in yaml or json " "presenatation" % args_file) - task = api.task_template_render(task_file.read(), **args) + task = api.Task.render_template(task_file.read(), **args) task = yaml.safe_load(task) eng = engine.BenchmarkEngine(task, mock.MagicMock())