Commit 161ad80c authored by Dr.李's avatar Dr.李

fixed tests bug

parent 896a96c9
...@@ -14,7 +14,7 @@ from alphamind.analysis.riskanalysis import risk_analysis ...@@ -14,7 +14,7 @@ from alphamind.analysis.riskanalysis import risk_analysis
class TestRiskAnalysis(unittest.TestCase): class TestRiskAnalysis(unittest.TestCase):
@staticmethod @staticmethod
def test_risk_analysis(self): def test_risk_analysis():
n_samples = 36000 n_samples = 36000
n_dates = 20 n_dates = 20
n_risk_factors = 35 n_risk_factors = 35
......
...@@ -13,7 +13,7 @@ from alphamind.portfolio.constraints import Constraints ...@@ -13,7 +13,7 @@ from alphamind.portfolio.constraints import Constraints
class TestConstraints(unittest.TestCase): class TestConstraints(unittest.TestCase):
@staticmethod @staticmethod
def test_constraints(self): def test_constraints():
cons = Constraints() cons = Constraints()
test_exp = np.array([[1., 2.], test_exp = np.array([[1., 2.],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment