"""This file tests logging function of an app.""" from sales.connectors.loggly import get_current_logger def test_current_logger_correlation_id(): """>Test correlation_id link with logging adapter. Test whether correlation_id is assigned to logging adapter, when using get_current_logger(correlation_id) function. """ correlation_id = 'test_correlation_id' current_logger = get_current_logger(correlation_id) assert current_logger.extra['correlation_id'] == correlation_id