From eb997bb5f8afcfe53c35cfa73f8c54e74a3e1e08 Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Tue, 29 Sep 2015 19:19:58 -0400 Subject: [PATCH] TEST: Pass cls.env for test_handle_adjustment. Otherwise we inseret random assets into a new TradingEnvironment, which is surprising in debugging. --- tests/modelling/test_modelling_algo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/modelling/test_modelling_algo.py b/tests/modelling/test_modelling_algo.py index 1892ba10..01e320bc 100644 --- a/tests/modelling/test_modelling_algo.py +++ b/tests/modelling/test_modelling_algo.py @@ -494,6 +494,7 @@ class FFCAlgorithmTestCase(TestCase): ffc_loader=self.ffc_loader, start=self.dates[max(window_lengths)], end=self.dates[-1], + env=self.env, ) algo.run(