mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
add tests for new statistics and fact notification status functions
This commit is contained in:
@@ -11,7 +11,7 @@ def get_months_for_financial_year(year):
|
||||
get_months_for_year(4, 13, year) +
|
||||
get_months_for_year(1, 4, year + 1)
|
||||
)
|
||||
if month < datetime.now()
|
||||
if convert_bst_to_utc(month) < datetime.now()
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ from sqlalchemy.types import DateTime
|
||||
|
||||
from app import db
|
||||
from app.models import Notification, NotificationHistory, FactNotificationStatus
|
||||
from app.utils import convert_bst_to_utc, get_london_midnight_in_utc, get_london_month_from_utc_column
|
||||
from app.utils import convert_bst_to_utc, get_london_midnight_in_utc
|
||||
|
||||
|
||||
def fetch_notification_status_for_day(process_day, service_id=None):
|
||||
|
||||
@@ -34,9 +34,7 @@ from app.models import (
|
||||
EMAIL_TYPE,
|
||||
INTERNATIONAL_SMS_TYPE,
|
||||
KEY_TYPE_TEST,
|
||||
NOTIFICATION_STATUS_TYPES,
|
||||
SMS_TYPE,
|
||||
TEMPLATE_TYPES,
|
||||
LETTER_TYPE,
|
||||
)
|
||||
from app.utils import get_london_month_from_utc_column, get_london_midnight_in_utc
|
||||
|
||||
Reference in New Issue
Block a user