mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-21 12:30:16 +08:00
TST: Standardize order of test assert params.
So that the np.assert_almost_equals messages have the correct ACTUAL and DESIRED values in all messages.
This commit is contained in:
@@ -69,8 +69,8 @@ class TestRisk(unittest.TestCase):
|
||||
def test_sharpe_06(self):
|
||||
for dt, value in answer_key.RISK_CUMULATIVE.sharpe.iterkv():
|
||||
np.testing.assert_almost_equal(
|
||||
value,
|
||||
self.cumulative_metrics_06.metrics.sharpe[dt],
|
||||
value,
|
||||
decimal=2,
|
||||
err_msg="Mismatch at %s" % (dt,))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user