Skip to content

Commit

Permalink
Remove add_months_to_date from test_invoicing
Browse files Browse the repository at this point in the history
  • Loading branch information
nospame committed Dec 10, 2024
1 parent 893f6af commit 2821c2b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions corehq/apps/accounting/tests/test_invoicing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2821c2b

Please sign in to comment.