mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Remove duplicate test
This test is testing the same things as `test_fetch_billing_data_for_day_bills_correctly_for_status`
This commit is contained in:
@@ -58,23 +58,6 @@ def set_up_yearly_data():
|
|||||||
return service
|
return service
|
||||||
|
|
||||||
|
|
||||||
def test_fetch_billing_data_for_today_includes_data_with_the_right_status(notify_db_session):
|
|
||||||
today = convert_utc_to_bst(datetime.utcnow())
|
|
||||||
service = create_service()
|
|
||||||
template = create_template(service=service, template_type="email")
|
|
||||||
|
|
||||||
for status in ['created', 'technical-failure']:
|
|
||||||
create_notification(template=template, status=status)
|
|
||||||
results = fetch_billing_data_for_day(today.date())
|
|
||||||
assert results == []
|
|
||||||
|
|
||||||
for status in ['delivered', 'sending', 'temporary-failure', 'pending']:
|
|
||||||
create_notification(template=template, status=status)
|
|
||||||
results = fetch_billing_data_for_day(today.date())
|
|
||||||
assert len(results) == 1
|
|
||||||
assert results[0].notifications_sent == 4
|
|
||||||
|
|
||||||
|
|
||||||
def test_fetch_billing_data_for_today_includes_data_with_the_right_key_type(notify_db_session):
|
def test_fetch_billing_data_for_today_includes_data_with_the_right_key_type(notify_db_session):
|
||||||
service = create_service()
|
service = create_service()
|
||||||
template = create_template(service=service, template_type="email")
|
template = create_template(service=service, template_type="email")
|
||||||
|
|||||||
Reference in New Issue
Block a user