mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-04 12:45:06 +08:00
TST: Adds tearDownClass methods to delete TradingEnvironments
This commit is contained in:
@@ -139,6 +139,10 @@ class TestBatchTransformMinutely(TestCase):
|
||||
cls.env = TradingEnvironment()
|
||||
cls.env.write_data(equities_identifiers=[0])
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
del cls.env
|
||||
|
||||
def setUp(self):
|
||||
setup_logger(self)
|
||||
start = pd.datetime(1990, 1, 3, 0, 0, 0, 0, pytz.utc)
|
||||
@@ -184,6 +188,10 @@ class TestBatchTransform(TestCase):
|
||||
cls.env = TradingEnvironment()
|
||||
cls.env.write_data(equities_identifiers=[0])
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
del cls.env
|
||||
|
||||
def setUp(self):
|
||||
setup_logger(self)
|
||||
self.sim_params = factory.create_simulation_parameters(
|
||||
|
||||
Reference in New Issue
Block a user