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

Side by Side Diff: appengine/test_results/model/testfile.py

Issue 499103002: Make test_results deployable again. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: merge to ToT Created 6 years, 3 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 (C) 2010 Google Inc. All rights reserved. 1 # Copyright (C) 2010 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 13 matching lines...) Expand all
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 28
29 from datetime import datetime 29 from datetime import datetime
30 import logging 30 import logging
31 31
32 from google.appengine.ext import db 32 from google.appengine.ext import db
33 33
34 from ..model.datastorefile import DataStoreFile 34 from model.datastorefile import DataStoreFile
35 35
36 36
37 class TestFile(DataStoreFile): # pylint: disable=W0232 37 class TestFile(DataStoreFile): # pylint: disable=W0232
38 master = db.StringProperty() 38 master = db.StringProperty()
39 builder = db.StringProperty() 39 builder = db.StringProperty()
40 test_type = db.StringProperty() 40 test_type = db.StringProperty()
41 build_number = db.IntegerProperty() 41 build_number = db.IntegerProperty()
42 42
43 @property 43 @property
44 def file_information(self): # pragma: no cover 44 def file_information(self): # pragma: no cover
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 return False 138 return False
139 139
140 self.date = datetime.now() 140 self.date = datetime.now()
141 self.put() 141 self.put()
142 142
143 return True 143 return True
144 144
145 def delete_all(self): # pragma: no cover 145 def delete_all(self): # pragma: no cover
146 self.delete_data() 146 self.delete_data()
147 self.delete() 147 self.delete()
OLDNEW
« no previous file with comments | « appengine/test_results/model/jsonresults.py ('k') | appengine/test_results/test/buildershandler_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698