import pytest from slz_ddex_housekeeping.entities import LambdaConfig @pytest.mark.parametrize( 'completed_housekeeping_threshold, failed_housekeeping_threshold, is_housekeeping_enabled', [ (24, 48, True), (0, 0, True), (24, -1, True), (-1, 48, True), (-1, -1, False), ] ) def test_lambda_config_is_housekeeping_enabled( completed_housekeeping_threshold, failed_housekeeping_threshold, is_housekeeping_enabled ): lambda_config = LambdaConfig( environment='test', rds_secrets_key='rds_secrets_key', feed_bucket='feed_bucket', completed_housekeeping_threshold=completed_housekeeping_threshold, failed_housekeeping_threshold=failed_housekeeping_threshold, sentry_secret_key='sentry_secret_key' ) assert lambda_config.is_housekeeping_enabled is is_housekeeping_enabled