Coverage for chalicelib/utils/__init__.py: 80%

8 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-10 12:56 +0000

1import logging 

2 

3from decouple import config 

4 

5from . import smtp 

6 

7logger = logging.getLogger(__name__) 

8logging.basicConfig(level=config("LOGLEVEL", default=logging.INFO)) 

9 

10if smtp.has_smtp(): 10 ↛ 11line 10 didn't jump to line 11 because the condition on line 10 was never true

11 logger.info("valid SMTP configuration found") 

12else: 

13 logger.info("no SMTP configuration found or SMTP validation failed")