tz utility swap and many test updates

This commit is contained in:
stvnrlly
2022-11-10 12:33:25 -05:00
parent 929b641e2f
commit b50cb4712f
38 changed files with 351 additions and 343 deletions

View File

@@ -8,7 +8,7 @@ from freezegun import freeze_time
from app.celery.tasks import (
check_billable_units,
get_billing_date_in_bst_from_filename,
get_billing_date_in_est_from_filename,
persist_daily_sorted_letter_counts,
process_updates_from_file,
record_daily_sorted_counts,
@@ -236,9 +236,9 @@ def test_check_billable_units_when_billable_units_does_not_match_page_count(
('20170820230000', date(2017, 8, 21)),
('20170120230000', date(2017, 1, 20))
])
def test_get_billing_date_in_bst_from_filename(filename_date, billing_date):
def test_get_billing_date_in_est_from_filename(filename_date, billing_date):
filename = 'NOTIFY-{}-RSP.TXT'.format(filename_date)
result = get_billing_date_in_bst_from_filename(filename)
result = get_billing_date_in_est_from_filename(filename)
assert result == billing_date

View File

@@ -409,7 +409,7 @@ def test_save_daily_notification_processing_time(mocker, sample_template, date_p
@freeze_time('2021-04-18T02:00')
@pytest.mark.parametrize('date_provided', [None, '2021-4-17'])
def test_save_daily_notification_processing_time_when_in_bst(mocker, sample_template, date_provided):
def test_save_daily_notification_processing_time_when_in_est(mocker, sample_template, date_provided):
# notification created too early to be counted
create_notification(
sample_template,