TST: overwrite_sim_params=False in tests when using list of sources

When specifying a list of sources to algorithm.py:run in a unit test,
specify overwrite_sim_params=False to suppress the unnessary
UserWarning.
This commit is contained in:
Jonathan Kamens
2015-04-30 15:30:19 -04:00
parent 8f9f65bdc6
commit 5c546b4f6c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -226,5 +226,5 @@ class AlgorithmGeneratorTestCase(TestCase):
sim_params = create_simulation_parameters(num_days=1,
data_frequency='minute')
algo = TestAlgo(self, sim_params=sim_params)
algo.run(source=[])
algo.run(source=[], overwrite_sim_params=False)
self.assertEqual(algo.datetime, sim_params.last_close)