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

Side by Side Diff: dashboard/dashboard/pinpoint/handlers/new_test.py

Issue 3002903002: [pinpoint] Refactor Quest Generator. (Closed)
Patch Set: quest_parser module 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 unified diff | Download patch
OLDNEW
1 # Copyright 2017 The Chromium Authors. All rights reserved. 1 # Copyright 2017 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import json 5 import json
6 6
7 import mock 7 import mock
8 import webapp2 8 import webapp2
9 import webtest 9 import webtest
10 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 request = dict(_BASE_REQUEST) 148 request = dict(_BASE_REQUEST)
149 request['bug_id'] = '' 149 request['bug_id'] = ''
150 response = self.testapp.post('/api/new', request, status=200) 150 response = self.testapp.post('/api/new', request, status=200)
151 result = json.loads(response.body) 151 result = json.loads(response.body)
152 self.assertIn('jobId', result) 152 self.assertIn('jobId', result)
153 self.assertEqual( 153 self.assertEqual(
154 result['jobUrl'], 154 result['jobUrl'],
155 'https://testbed.example.com/job/%s' % result['jobId']) 155 'https://testbed.example.com/job/%s' % result['jobId'])
156 job = job_module.Job.query().get() 156 job = job_module.Job.query().get()
157 self.assertEqual(None, job.bug_id) 157 self.assertEqual(None, job.bug_id)
158
159
160 class QuestGenerationTest(testing_common.TestCase):
161
162 pass
perezju 2017/08/23 08:59:58 missing something here?
dtu 2017/08/24 23:17:52 Done. Removed. These tests are now under quest_gen
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698