getting unit tests to log properly

This commit is contained in:
2021-07-27 14:44:10 -05:00
committed by 3wc
parent 66dee4d87a
commit 8c10f71f58
3 changed files with 20 additions and 10 deletions

View File

@ -23,10 +23,10 @@ class BaseTestCase(TestCase):
return self.app
def setUp(self):
mylog_info(self.app, f"setting up {self.id()}")
set_mylog_test_id(self.id())
def tearDown(self):
mylog_info(self.app, f"tearing down {self.id()}")
set_mylog_test_id("")
def _login(self, user_email):
get_model().login(user_email)