blob: 2d9eb9e315a9fc0d835e271fc281830e4e565c69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Base test class for Legion-specific unittests.
Currently this module is only needed to setup the import paths for the
unittests. This will allow unittests to use the import format:
from legion.foo import bar
Using this base class for all unittests allows for easier extensibility in
the future.
"""
import os
import sys
import unittest
# Setup import paths
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
LEGION_IMPORT_FIX = os.path.join(THIS_DIR, '..', '..')
sys.path.append(LEGION_IMPORT_FIX)
class TestCase(unittest.TestCase):
pass
def main():
unittest.main(verbosity=0, argv=sys.argv[:1])
|