Chromium Code Reviews| Index: dashboard/dashboard/pinpoint/handlers/jobs_test.py |
| diff --git a/dashboard/dashboard/pinpoint/handlers/jobs_test.py b/dashboard/dashboard/pinpoint/handlers/jobs_test.py |
| index 00335c4778081d2f74d79e566e0858133e4eef48..770f0aaef9a4abc2c48a5ce089b675b8b20861fd 100644 |
| --- a/dashboard/dashboard/pinpoint/handlers/jobs_test.py |
| +++ b/dashboard/dashboard/pinpoint/handlers/jobs_test.py |
| @@ -13,6 +13,7 @@ from google.appengine.ext import testbed |
| from dashboard.pinpoint.handlers import jobs |
| from dashboard.pinpoint.models import job as job_module |
| +from dashboard.pinpoint.models import quest_generator |
| class JobsTest(unittest.TestCase): |
| @@ -35,11 +36,15 @@ class JobsTest(unittest.TestCase): |
| def testPost_ValidRequest(self): |
| # Create job. |
| + generator = quest_generator.TelemetryQuestGenerator({ |
| + 'configuration': 'chromium-rel-mac11-pro', |
| + 'target': 'telemetry_perf_tests', |
|
perezju
2017/08/16 08:15:25
Use plain the plain QuestGenerator here (rather th
dtu
2017/08/16 17:31:48
Done.
|
| + 'dimensions': '{}', |
| + 'benchmark': 'speedometer', |
| + }) |
| job = job_module.Job.New( |
| - configuration='Mac', |
| - test_suite='suite', |
| - test='filter', |
| - metric='metric', |
| + arguments=generator.AsDict(), |
| + quests=generator.Quests(), |
| auto_explore=True, |
| bug_id=None) |
| job.put() |