Skip to content

Commit e72dbb2

Browse files
fix unit tests
1 parent 4e15372 commit e72dbb2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api_tests/notifications/test_notifications_db_transaction.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
AuthUserFactory,
44
NotificationTypeFactory
55
)
6-
from datetime import datetime
76
from osf.models import Notification, NotificationType, NotificationSubscription
87
from tests.utils import capture_notifications
98
from django.db import reset_queries, connection
@@ -54,5 +53,5 @@ def test_emit_frequency_none(self, user_one, test_notification_type):
5453
)
5554
assert Notification.objects.filter(
5655
subscription__notification_type=test_notification_type,
57-
sent=datetime(1000, 1, 1)
56+
fake_sent=True
5857
).exists()

0 commit comments

Comments
 (0)