Skip to content

Commit 1add2f6

Browse files
pre-commit-ci[bot]SahilJat
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 80d9427 commit 1add2f6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

api/tests/unit/organisations/test_unit_organisations_tasks.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -561,10 +561,7 @@ def test_handle_api_usage_notifications__no_admin_users__skips_notification(
561561

562562
# Then - no email sent, warning logged
563563
assert len(mailoutbox) == 0
564-
assert any(
565-
e.get("event") == "notification.no_recipients"
566-
for e in log.events
567-
)
564+
assert any(e.get("event") == "notification.no_recipients" for e in log.events)
568565
assert not OrganisationAPIUsageNotification.objects.filter(
569566
organisation=organisation,
570567
).exists()

0 commit comments

Comments
 (0)