Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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
| |
| OLD | NEW |