diff --git a/api/tests/unit_tests/commands/test_clean_expired_messages.py b/api/tests/unit_tests/commands/test_clean_expired_messages.py index dccc8160c0..a46509bdc3 100644 --- a/api/tests/unit_tests/commands/test_clean_expired_messages.py +++ b/api/tests/unit_tests/commands/test_clean_expired_messages.py @@ -47,6 +47,7 @@ def test_absolute_mode_calls_from_time_range(): end_before=end_before, batch_size=200, dry_run=True, + task_label="daily", ) mock_from_days.assert_not_called() @@ -76,6 +77,7 @@ def test_relative_mode_before_days_only_calls_from_days(): days=30, batch_size=500, dry_run=False, + task_label="daily", ) mock_from_time_range.assert_not_called() @@ -108,6 +110,7 @@ def test_relative_mode_with_from_days_ago_calls_from_time_range(): end_before=fixed_now - datetime.timedelta(days=30), batch_size=1000, dry_run=False, + task_label="daily", ) mock_from_days.assert_not_called()