Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhpillai committed Dec 12, 2024
1 parent fcfac31 commit 90f7a0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion posthog/tasks/alerts/test/test_trends_absolute_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import dateutil
import pytz
import datetime

from posthog.models.alert import AlertCheck
from posthog.models.instance_setting import set_instance_setting
Expand Down Expand Up @@ -213,7 +214,7 @@ def test_trend_no_threshold_breached(self, mock_send_breaches: MagicMock, mock_s
updated_alert = AlertConfiguration.objects.get(pk=alert["id"])
assert updated_alert.state == AlertState.NOT_FIRING

next_check = pytz.datetime.datetime(2024, 7, 1, 4, 0, tzinfo=pytz.UTC)
next_check = datetime.datetime(2024, 7, 1, 4, 0, tzinfo=pytz.UTC)
# first day of next month at around 4 AM
assert updated_alert.next_check_at is not None
assert updated_alert.next_check_at.hour == next_check.hour
Expand Down

0 comments on commit 90f7a0c

Please sign in to comment.