@@ -63,37 +63,37 @@ def test_parse_drops_threads_missing_from_payload():
6363
6464def test_should_notify_when_never_notified ():
6565 now = datetime .now (UTC )
66- role : Interest = {"role_id" : 42 , "last_notified_at" : None }
66+ interest : Interest = {"role_id" : 42 , "last_notified_at" : None }
6767
68- assert should_notify (role , now ) is True
68+ assert should_notify (interest , now ) is True
6969
7070
7171def test_should_notify_after_default_cooldown ():
7272 now = datetime .now (UTC )
73- role : Interest = {
73+ interest : Interest = {
7474 "role_id" : 42 ,
7575 "last_notified_at" : now - NOTIFICATION_COOLDOWN ,
7676 }
7777
78- assert should_notify (role , now ) is True
78+ assert should_notify (interest , now ) is True
7979
8080
8181def test_should_not_notify_before_default_cooldown ():
8282 now = datetime .now (UTC )
83- role : Interest = {
83+ interest : Interest = {
8484 "role_id" : 42 ,
8585 "last_notified_at" : now - NOTIFICATION_COOLDOWN + timedelta (seconds = 1 ),
8686 }
8787
88- assert should_notify (role , now ) is False
88+ assert should_notify (interest , now ) is False
8989
9090
9191def test_custom_cooldown_respected ():
9292 now = datetime .now (UTC )
9393 cooldown = timedelta (hours = 3 )
94- role : Interest = {
94+ interest : Interest = {
9595 "role_id" : 42 ,
9696 "last_notified_at" : now - timedelta (hours = 2 , minutes = 30 ),
9797 }
9898
99- assert should_notify (role , now , cooldown = cooldown ) is False
99+ assert should_notify (interest , now , cooldown = cooldown ) is False
0 commit comments