Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit a2a853a

Browse files
committed
robustness for flaky
1 parent aff49b3 commit a2a853a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

services/tests/test_billing.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -715,9 +715,13 @@ def test_modify_subscription_no_plan_found(
715715
owner.refresh_from_db()
716716
assert owner.plan == original_plan
717717
assert owner.plan_user_count == original_user_count
718-
log_error_mock.assert_called_once_with(
719-
f"Plan {desired_plan_name} not found",
720-
extra=dict(owner_id=owner.ownerid),
718+
log_error_mock.assert_has_calls(
719+
[
720+
call(
721+
f"Plan {desired_plan_name} not found",
722+
extra=dict(owner_id=owner.ownerid),
723+
),
724+
]
721725
)
722726

723727
@patch("services.billing.stripe.Subscription.modify")

0 commit comments

Comments
 (0)