mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-05 00:30:04 -04:00
Rename to performance_dashboard
Fix totals to return totals for all time rather than for date range. Added more test data
This commit is contained in:
@@ -5,6 +5,7 @@ from datetime import datetime, date, timedelta
|
||||
import pytest
|
||||
|
||||
from app import db
|
||||
from app.dao import fact_processing_time_dao
|
||||
from app.dao.email_branding_dao import dao_create_email_branding
|
||||
from app.dao.inbound_sms_dao import dao_create_inbound_sms
|
||||
from app.dao.invited_org_user_dao import save_invited_org_user
|
||||
@@ -67,7 +68,7 @@ from app.models import (
|
||||
BroadcastEvent,
|
||||
BroadcastProvider,
|
||||
BroadcastProviderMessage,
|
||||
BroadcastProviderMessageNumber
|
||||
BroadcastProviderMessageNumber, FactProcessingTime
|
||||
)
|
||||
|
||||
|
||||
@@ -752,6 +753,15 @@ def create_ft_notification_status(
|
||||
return data
|
||||
|
||||
|
||||
def create_process_time(bst_date='2021-03-01', messages_total=35, messages_within_10_secs=34):
|
||||
data = FactProcessingTime(
|
||||
bst_date=bst_date,
|
||||
messages_total=messages_total,
|
||||
messages_within_10_secs=messages_within_10_secs
|
||||
)
|
||||
fact_processing_time_dao.insert_update_processing_time(data)
|
||||
|
||||
|
||||
def create_service_guest_list(service, email_address=None, mobile_number=None):
|
||||
if email_address:
|
||||
guest_list_user = ServiceGuestList.from_string(service.id, EMAIL_TYPE, email_address)
|
||||
|
||||
Reference in New Issue
Block a user