| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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() |
| OLD | NEW |