Skip to content

Commit 05e0ec1

Browse files
committed
remove prints
1 parent d4ff447 commit 05e0ec1

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

django_celery_beat/schedulers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ def _get_timezone_offset(self, timezone_name):
383383
offset_seconds = (dt1.utcoffset().total_seconds() - dt2.utcoffset().total_seconds())
384384
offset_hours = int(offset_seconds / 3600)
385385

386-
print(offset_hours)
387386
return offset_hours
388387

389388
def schedule_changed(self):

t/unit/test_schedulers.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -959,10 +959,6 @@ def test_crontab_exclusion_logic_basic(self):
959959
PeriodicTask.objects.filter(exclude_query).values_list('id', flat=True)
960960
)
961961

962-
# Print actual results for debugging
963-
print(f"Excluded tasks: {excluded_tasks}")
964-
print(f"Task outside ID: {task_outside.id}")
965-
966962
# The test that matters is that hour 4 is always included
967963
assert task_hour_four.id not in excluded_tasks
968964

@@ -1056,9 +1052,6 @@ def test_crontab_timezone_conversion(self, mock_now, mock_get_tz):
10561052
PeriodicTask.objects.filter(exclude_query).values_list('id', flat=True)
10571053
)
10581054

1059-
# Print actual results for debugging
1060-
print(f"Excluded tasks: {excluded_tasks}")
1061-
10621055
# Current hour tasks in different timezones should not be excluded
10631056
assert task_utc_current.id not in excluded_tasks, "UTC current hour task should be included"
10641057
assert task_ny_current.id not in excluded_tasks, "New York current hour task should be included"

0 commit comments

Comments
 (0)