TEST: Ensure that test_transforms's algos are passed sim_params.

This commit is contained in:
Eddie Hebert
2013-04-12 12:54:11 -04:00
parent 48a691e9a7
commit cfbbbe2f1c
+3 -2
View File
@@ -293,7 +293,7 @@ class TestBatchTransform(TestCase):
factory.create_test_df_source(self.sim_params)
def test_event_window(self):
algo = BatchTransformAlgorithm()
algo = BatchTransformAlgorithm(sim_params=self.sim_params)
algo.run(self.source)
wl = algo.window_length
# The following assertion depend on window length of 3
@@ -358,7 +358,8 @@ class TestBatchTransform(TestCase):
)
def test_passing_of_args(self):
algo = BatchTransformAlgorithm(1, kwarg='str')
algo = BatchTransformAlgorithm(1,
kwarg='str', sim_params=self.sim_params)
self.assertEqual(algo.args, (1,))
self.assertEqual(algo.kwargs, {'kwarg': 'str'})