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

Unified Diff: appengine/findit/model/test/base_try_job_test.py

Issue 2586483003: [Findit] Adding build model for flake try jobs (Closed)
Patch Set: Fixing whitespace Created 4 years 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
Index: appengine/findit/model/test/base_try_job_test.py
diff --git a/appengine/findit/model/test/wf_try_job_test.py b/appengine/findit/model/test/base_try_job_test.py
similarity index 77%
copy from appengine/findit/model/test/wf_try_job_test.py
copy to appengine/findit/model/test/base_try_job_test.py
index ac281783f86865c186b97434627337d4b999e857..c95b38bd43a31bfe1f9deb7c6b36672664dafb13 100644
--- a/appengine/findit/model/test/wf_try_job_test.py
+++ b/appengine/findit/model/test/base_try_job_test.py
@@ -1,4 +1,4 @@
-# Copyright 2015 The Chromium Authors. All rights reserved.
+# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -8,25 +8,26 @@ from model import analysis_status
from model.wf_try_job import WfTryJob
-class WfTryJobTest(unittest.TestCase):
- def testWfTryJobStatusIsCompleted(self):
+class BaseTryJobTest(unittest.TestCase):
+
+ def testTryJobStatusIsCompleted(self):
for status in (analysis_status.COMPLETED, analysis_status.ERROR):
try_job = WfTryJob.Create('m', 'b', 123)
try_job.status = status
self.assertTrue(try_job.completed)
- def testWfTryJobStatusIsNotCompleted(self):
+ def testTryJobStatusIsNotCompleted(self):
for status in (analysis_status.PENDING, analysis_status.RUNNING):
try_job = WfTryJob.Create('m', 'b', 123)
try_job.status = status
self.assertFalse(try_job.completed)
- def testWfTryJobStatusIsFailed(self):
+ def testTryJobStatusIsFailed(self):
try_job = WfTryJob.Create('m', 'b', 123)
try_job.status = analysis_status.ERROR
self.assertTrue(try_job.failed)
- def testWfTryJobStatusIsNotFailed(self):
+ def testTryJobStatusIsNotFailed(self):
for status in (analysis_status.PENDING, analysis_status.RUNNING,
analysis_status.COMPLETED):
try_job = WfTryJob.Create('m', 'b', 123)
« no previous file with comments | « appengine/findit/model/flake/test/flake_try_job_test.py ('k') | appengine/findit/model/test/wf_try_job_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698