mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 17:01:35 -05:00
Run auto-correct on app/ and tests/
This commit is contained in:
@@ -1,33 +1,38 @@
|
||||
from collections import namedtuple, defaultdict
|
||||
from datetime import datetime, date
|
||||
from collections import defaultdict, namedtuple
|
||||
from datetime import date, datetime
|
||||
|
||||
import pytest
|
||||
from freezegun import freeze_time
|
||||
from flask import current_app
|
||||
from freezegun import freeze_time
|
||||
|
||||
from app.exceptions import DVLAException, NotificationTechnicalFailureException
|
||||
from app.models import (
|
||||
NotificationHistory,
|
||||
NOTIFICATION_CREATED,
|
||||
NOTIFICATION_DELIVERED,
|
||||
NOTIFICATION_SENDING,
|
||||
NOTIFICATION_TEMPORARY_FAILURE,
|
||||
NOTIFICATION_TECHNICAL_FAILURE,
|
||||
DailySortedLetter
|
||||
)
|
||||
from app.celery.tasks import (
|
||||
check_billable_units,
|
||||
get_billing_date_in_bst_from_filename,
|
||||
persist_daily_sorted_letter_counts,
|
||||
process_updates_from_file,
|
||||
record_daily_sorted_counts,
|
||||
update_letter_notifications_statuses,
|
||||
update_letter_notifications_to_error,
|
||||
update_letter_notifications_to_sent_to_dvla,
|
||||
record_daily_sorted_counts
|
||||
)
|
||||
from app.dao.daily_sorted_letter_dao import dao_get_daily_sorted_letter_by_billing_day
|
||||
|
||||
from tests.app.db import create_notification, create_service_callback_api, create_notification_history
|
||||
from app.dao.daily_sorted_letter_dao import (
|
||||
dao_get_daily_sorted_letter_by_billing_day,
|
||||
)
|
||||
from app.exceptions import DVLAException, NotificationTechnicalFailureException
|
||||
from app.models import (
|
||||
NOTIFICATION_CREATED,
|
||||
NOTIFICATION_DELIVERED,
|
||||
NOTIFICATION_SENDING,
|
||||
NOTIFICATION_TECHNICAL_FAILURE,
|
||||
NOTIFICATION_TEMPORARY_FAILURE,
|
||||
DailySortedLetter,
|
||||
NotificationHistory,
|
||||
)
|
||||
from tests.app.db import (
|
||||
create_notification,
|
||||
create_notification_history,
|
||||
create_service_callback_api,
|
||||
)
|
||||
from tests.conftest import set_config
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user