mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-08 11:24:44 +08:00
MAINT: Flake8
This commit is contained in:
@@ -27,7 +27,6 @@ from zipline.utils.test_utils import (
|
||||
nullctx,
|
||||
setup_logger,
|
||||
teardown_logger
|
||||
|
||||
)
|
||||
import zipline.utils.factory as factory
|
||||
import zipline.utils.simfactory as simfactory
|
||||
@@ -449,7 +448,7 @@ class TestPositions(TestCase):
|
||||
factory.create_test_df_source(self.sim_params)
|
||||
|
||||
def tearDown(self):
|
||||
teardown_logger(self);
|
||||
teardown_logger(self)
|
||||
|
||||
def test_empty_portfolio(self):
|
||||
algo = EmptyPositionsAlgorithm(sim_params=self.sim_params)
|
||||
@@ -499,7 +498,7 @@ class TestAlgoScript(TestCase):
|
||||
}
|
||||
|
||||
def tearDown(self):
|
||||
teardown_logger(self);
|
||||
teardown_logger(self)
|
||||
|
||||
def test_noop(self):
|
||||
algo = TradingAlgorithm(initialize=initialize_noop,
|
||||
|
||||
@@ -140,7 +140,7 @@ class TestBatchTransformMinutely(TestCase):
|
||||
factory.create_test_df_source(bars='minute')
|
||||
|
||||
def tearDown(self):
|
||||
teardown_logger(self);
|
||||
teardown_logger(self)
|
||||
|
||||
def test_core(self):
|
||||
algo = BatchTransformAlgorithmMinute(sim_params=self.sim_params)
|
||||
@@ -171,7 +171,7 @@ class TestBatchTransform(TestCase):
|
||||
factory.create_test_df_source(self.sim_params)
|
||||
|
||||
def tearDown(self):
|
||||
teardown_logger(self);
|
||||
teardown_logger(self)
|
||||
|
||||
def test_core_functionality(self):
|
||||
algo = BatchTransformAlgorithm(sim_params=self.sim_params)
|
||||
|
||||
@@ -67,7 +67,7 @@ class SecurityListTestCase(TestCase):
|
||||
setup_logger(self)
|
||||
|
||||
def tearDown(self):
|
||||
teardown_logger(self);
|
||||
teardown_logger(self)
|
||||
|
||||
def test_iterate_over_rl(self):
|
||||
sim_params = factory.create_simulation_parameters(
|
||||
|
||||
@@ -40,7 +40,7 @@ class TestTALIB(TestCase):
|
||||
factory.create_test_panel_ohlc_source(sim_params)
|
||||
|
||||
def tearDown(self):
|
||||
teardown_logger(self)
|
||||
teardown_logger(self)
|
||||
|
||||
@skip
|
||||
def test_talib_with_default_params(self):
|
||||
|
||||
Reference in New Issue
Block a user