Close all positions on demo account when exiting tests

This commit is contained in:
2023-01-05 17:25:22 +00:00
parent b8b39ea8d3
commit a6f9e74ee1
2 changed files with 10 additions and 0 deletions

View File

@@ -32,6 +32,11 @@ class ElasticMock:
class LiveBase:
@classmethod
def tearDownClass(cls):
cls.account.client.close_all_positions()
super(LiveBase, cls).tearDownClass()
@classmethod
def setUpClass(cls):
super(LiveBase, cls).setUpClass()