| OLD | NEW |
| 1 # Copyright 2015 The LUCI 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 under the Apache License, Version 2.0 |
| 3 # found in the LICENSE file. | 3 # that can be 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/ |
| 12 APP_DIR = os.path.dirname(os.path.realpath(os.path.abspath(__file__))) | 12 APP_DIR = os.path.dirname(os.path.realpath(os.path.abspath(__file__))) |
| 13 # config/components/third_party | 13 # config/components/third_party |
| (...skipping 21 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 |