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 os | 5 import os |
6 import sys | 6 import sys |
7 | 7 |
8 # auth_service/ | 8 # auth_service/ |
9 APP_DIR = os.path.dirname(os.path.realpath(os.path.abspath(__file__))) | 9 APP_DIR = os.path.dirname(os.path.realpath(os.path.abspath(__file__))) |
10 | 10 |
11 | 11 |
12 def setup_test_env(): | 12 def setup_test_env(): |
13 """Sets up App Engine test environment.""" | 13 """Sets up App Engine test environment.""" |
14 # For application modules. | 14 # For application modules. |
15 sys.path.insert(0, APP_DIR) | 15 sys.path.insert(0, APP_DIR) |
16 | 16 |
17 from test_support import test_env | 17 from test_support import test_env |
18 test_env.setup_test_env() | 18 test_env.setup_test_env() |
OLD | NEW |