Skip to content

Commit 3a5e584

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ca8c7f4 commit 3a5e584

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

api/tests/unit/organisations/test_unit_organisations_tasks.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,8 @@ def test_handle_api_usage_notifications__usage_below_100_percent__sends_90_perce
497497
"usage_url": f"{get_current_site_url()}/organisation/{organisation.id}/usage",
498498
},
499499
)
500+
501+
500502
@pytest.mark.freeze_time("2023-01-19T09:09:47.325132+00:00")
501503
def test_handle_api_usage_notifications__stale_cache_lower_than_subscription_limit__sends_no_email(
502504
mocker: MockerFixture,
@@ -524,7 +526,7 @@ def test_handle_api_usage_notifications__stale_cache_lower_than_subscription_lim
524526
current_billing_term_ends_at=now + timedelta(days=320),
525527
api_calls_30d=usage,
526528
)
527-
529+
528530
mock_api_usage = mocker.patch(
529531
"organisations.task_helpers.get_current_api_usage",
530532
)
@@ -539,7 +541,7 @@ def test_handle_api_usage_notifications__stale_cache_lower_than_subscription_lim
539541
handle_api_usage_notifications()
540542

541543
# Then
542-
# Because usage (95) is evaluated against the true allowance (50,000),
544+
# Because usage (95) is evaluated against the true allowance (50,000),
543545
# it is < 1%, so no notification should be sent.
544546
assert len(mailoutbox) == 0
545547

0 commit comments

Comments
 (0)