-
Notifications
You must be signed in to change notification settings - Fork 9
/
test.py
29 lines (22 loc) · 1.01 KB
/
test.py
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
# encoding: utf-8
# (c) 2017-2024 Open Risk, all rights reserved (https://www.openriskmanagement.com)
#
# portfolioAnalytics is licensed under the Apache 2.0 license a copy of which is included
# in the source distribution of portfolioAnalytics. This is notwithstanding any licenses of
# third-party software included in this distribution. You may not use this file except in
# compliance with the License.
#
# Unless required by applicable law or agreed to in writing, software distributed under
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific language governing permissions and
# limitations under the License.
"""Run the portfolioAnalytics unittest suite."""
import sys
import unittest
from portfolioAnalytics import source_path
sys.path.append(source_path)
loader = unittest.TestLoader()
start_dir = source_path + 'tests'
suite = loader.discover(start_dir)
runner = unittest.TextTestRunner()
runner.run(suite)