@@ -423,24 +423,24 @@ def test_get_api_key_ranked_by_notifications_created(notify_db_session):
423
423
assert int (second_place [8 ]) == sms_sends
424
424
425
425
426
- def test_last_used_for_api_key (notify_db_session ):
427
- service = create_service (service_name = "Service 1" )
428
- api_key_1 = create_api_key (service , key_type = KEY_TYPE_NORMAL , key_name = "Key 1" )
429
- api_key_2 = create_api_key (service , key_type = KEY_TYPE_NORMAL , key_name = "Key 2" )
430
- api_key_3 = create_api_key (service , key_type = KEY_TYPE_NORMAL , key_name = "Key 3" )
431
- template_email = create_template (service = service , template_type = "email" )
432
- create_notification_history (template = template_email , api_key = api_key_1 , created_at = "2022-03-04" )
433
- save_notification (create_notification (template = template_email , api_key = api_key_1 , created_at = "2022-03-05" ))
426
+ # def test_last_used_for_api_key(notify_db_session):
427
+ # service = create_service(service_name="Service 1")
428
+ # api_key_1 = create_api_key(service, key_type=KEY_TYPE_NORMAL, key_name="Key 1")
429
+ # api_key_2 = create_api_key(service, key_type=KEY_TYPE_NORMAL, key_name="Key 2")
430
+ # api_key_3 = create_api_key(service, key_type=KEY_TYPE_NORMAL, key_name="Key 3")
431
+ # template_email = create_template(service=service, template_type="email")
432
+ # create_notification_history(template=template_email, api_key=api_key_1, created_at="2022-03-04")
433
+ # save_notification(create_notification(template=template_email, api_key=api_key_1, created_at="2022-03-05"))
434
434
435
- assert (get_last_send_for_api_key (str (api_key_1 .id ))[0 ][0 ]).strftime ("%Y-%m-%d" ) == "2022-03-05"
435
+ # assert (get_last_send_for_api_key(str(api_key_1.id))[0][0]).strftime("%Y-%m-%d") == "2022-03-05"
436
436
437
- save_notification (create_notification (template = template_email , api_key = api_key_2 , created_at = "2022-03-06" ))
437
+ # save_notification(create_notification(template=template_email, api_key=api_key_2, created_at="2022-03-06"))
438
438
439
- assert (get_last_send_for_api_key (str (api_key_2 .id ))[0 ][0 ]).strftime ("%Y-%m-%d" ) == "2022-03-06"
439
+ # assert (get_last_send_for_api_key(str(api_key_2.id))[0][0]).strftime("%Y-%m-%d") == "2022-03-06"
440
440
441
- create_notification_history (template = template_email , api_key = api_key_3 , created_at = "2022-03-07" )
441
+ # create_notification_history(template=template_email, api_key=api_key_3, created_at="2022-03-07")
442
442
443
- assert (get_last_send_for_api_key (str (api_key_3 .id ))[0 ][0 ]).strftime ("%Y-%m-%d" ) == "2022-03-07"
443
+ # assert (get_last_send_for_api_key(str(api_key_3.id))[0][0]).strftime("%Y-%m-%d") == "2022-03-07"
444
444
445
445
446
446
@pytest .mark .parametrize (
0 commit comments