@@ -16,6 +16,8 @@ from kalliope.core.Models.Settings import Settings
class TestBrainLoader(unittest.TestCase):
def setUp(self):
+ # be sure the brain haven't been instantiated before
+ Singleton._instances = {}
if "/Tests" in os.getcwd():
self.brain_to_test = os.getcwd() + os.sep + "brains/brain_test.yml"
else:
@@ -14,6 +14,9 @@ from kalliope.core.RestAPI.FlaskAPI import FlaskAPI
class TestRestAPI(LiveServerTestCase):
+ def tearDown(self):
+
def create_app(self):
"""
executed once at the beginning of the test