| OLD | NEW |
| 1 # Copyright 2015 The Swarming Authors. All rights reserved. | 1 # Copyright 2015 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed by the Apache v2.0 license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import logging | 5 import logging |
| 6 import os | 6 import os |
| 7 import sys | 7 import sys |
| 8 import unittest | 8 import unittest |
| 9 | 9 |
| 10 | 10 |
| 11 # config/ | 11 # config/ |
| (...skipping 23 matching lines...) Expand all Loading... |
| 35 logging.basicConfig(level=logging.FATAL) | 35 logging.basicConfig(level=logging.FATAL) |
| 36 unittest.main() | 36 unittest.main() |
| 37 | 37 |
| 38 | 38 |
| 39 def future(result): | 39 def future(result): |
| 40 # Assume setup_test_env was called. | 40 # Assume setup_test_env was called. |
| 41 from google.appengine.ext import ndb | 41 from google.appengine.ext import ndb |
| 42 f = ndb.Future() | 42 f = ndb.Future() |
| 43 f.set_result(result) | 43 f.set_result(result) |
| 44 return f | 44 return f |
| OLD | NEW |