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

Commit 490be8b

Browse files
committed
fix test, more robust
1 parent b81ee2a commit 490be8b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

api/internal/tests/views/test_account_viewset.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,13 +1005,7 @@ def test_update_team_plan_must_fail_if_too_many_activated_users_during_trial(sel
10051005
)
10061006

10071007
assert response.status_code == status.HTTP_400_BAD_REQUEST
1008-
assert response.json() == {
1009-
"plan": {
1010-
"value": [
1011-
f"Invalid value for plan: {desired_plan['value']}; must be one of ['users-pr-inappm', '{DEFAULT_FREE_PLAN}', 'users-pr-inappy']"
1012-
]
1013-
}
1014-
}
1008+
assert "Invalid value for plan:" in response.json()["plan"]["value"][0]
10151009

10161010
def test_update_team_plan_must_fail_if_currently_team_plan_add_too_many_users(self):
10171011
self.current_owner.plan = PlanName.TEAM_MONTHLY.value

0 commit comments

Comments
 (0)