From 2821c2bc10f9a43f3e1a12883e73662806d403e8 Mon Sep 17 00:00:00 2001 From: nospame Date: Tue, 10 Dec 2024 15:43:50 -0800 Subject: [PATCH] Remove add_months_to_date from test_invoicing --- corehq/apps/accounting/tests/test_invoicing.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/corehq/apps/accounting/tests/test_invoicing.py b/corehq/apps/accounting/tests/test_invoicing.py index a94de4411d60..ab65d508062c 100644 --- a/corehq/apps/accounting/tests/test_invoicing.py +++ b/corehq/apps/accounting/tests/test_invoicing.py @@ -8,8 +8,6 @@ from django.core import mail from django.test import override_settings -from dimagi.utils.dates import add_months_to_date - from corehq.apps.accounting import tasks, utils from corehq.apps.accounting.invoicing import DomainInvoiceFactory from corehq.apps.accounting.models import ( @@ -71,7 +69,7 @@ def setUpClass(cls): if cls.is_testing_web_user_feature: # make sure the subscription is still active when we count web users cls.subscription_is_active = True - cls.subscription_end_date = add_months_to_date(cls.subscription_start_date, cls.subscription_length) + cls.subscription_end_date = cls.subscription_start_date + relativedelta(months=cls.subscription_length) cls.subscription = generator.generate_domain_subscription( cls.account, cls.domain,