Skip to content

Commit

Permalink
logger: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Oct 25, 2023
1 parent 221b429 commit 18a98bf
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions automon/log/tests/test_logger_builtin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import unittest

from automon.log import logger

log = logger.logging.getLogger(__name__)
log.setLevel(logger.DEBUG)


class LoggingTest(unittest.TestCase):

def test_logger(self):
self.assertTrue(log)

def test_error(self):
self.assertIsNone(log.error('test'))

def test_debug(self):
self.assertIsNone(log.debug('test'))

def test_info(self):
self.assertIsNone(log.info('test'))

def test_critical(self):
self.assertIsNone(log.critical('test'))

def test_warn(self):
self.assertIsNone(log.warning('test'))


if __name__ == '__main__':
unittest.main()

0 comments on commit 18a98bf

Please sign in to comment.