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

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: Fix __exit__ arguments Created 6 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 (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 import model
35 reload(model)
eseidel 2014/08/25 20:23:36 Is this needed?
ojan 2014/08/25 20:24:25 Whoops. Leftover from an earlier iteration.
36
37 from model.datastorefile import DataStoreFile
35 38
36 39
37 class TestFile(DataStoreFile): # pylint: disable=W0232 40 class TestFile(DataStoreFile): # pylint: disable=W0232
38 master = db.StringProperty() 41 master = db.StringProperty()
39 builder = db.StringProperty() 42 builder = db.StringProperty()
40 test_type = db.StringProperty() 43 test_type = db.StringProperty()
41 build_number = db.IntegerProperty() 44 build_number = db.IntegerProperty()
42 45
43 @property 46 @property
44 def file_information(self): # pragma: no cover 47 def file_information(self): # pragma: no cover
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 return False 141 return False
139 142
140 self.date = datetime.now() 143 self.date = datetime.now()
141 self.put() 144 self.put()
142 145
143 return True 146 return True
144 147
145 def delete_all(self): # pragma: no cover 148 def delete_all(self): # pragma: no cover
146 self.delete_data() 149 self.delete_data()
147 self.delete() 150 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