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

Unified Diff: dashboard/dashboard/pinpoint/handlers/jobs_test.py

Issue 3002903002: [pinpoint] Refactor Quest Generator. (Closed)
Patch Set: Comments Created 3 years, 4 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 | « no previous file | dashboard/dashboard/pinpoint/handlers/new.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1819a23321d77c1f96412793230dbbfdefc042cf..65d71122c7635ad79dfd441160c35da74ed87523 100644
--- a/dashboard/dashboard/pinpoint/handlers/jobs_test.py
+++ b/dashboard/dashboard/pinpoint/handlers/jobs_test.py
@@ -13,7 +13,6 @@ 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):
@@ -36,15 +35,9 @@ class JobsTest(unittest.TestCase):
def testPost_ValidRequest(self):
# Create job.
- generator = quest_generator.QuestGenerator({
- 'configuration': 'chromium-rel-mac11-pro',
- 'target': 'telemetry_perf_tests',
- 'dimensions': '{}',
- 'benchmark': 'speedometer',
- })
job = job_module.Job.New(
- arguments=generator.AsDict(),
- quests=generator.Quests(),
+ arguments={},
+ quests=(),
auto_explore=True,
bug_id=None)
job.put()
« no previous file with comments | « no previous file | dashboard/dashboard/pinpoint/handlers/new.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698