Skip to content

Commit

Permalink
out-of-scope quality :-|
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Jan 15, 2025
1 parent 40bc806 commit 50b8f41
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/users/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,9 @@ def test_can_edit_personal_information(self):
}
for user_type, user_specs in specs.items():
for other_user_type, expected in user_specs.items():
assert (
locals()[user_type].can_edit_personal_information(locals()[other_user_type]) is expected
), f"{user_type}.can_edit_personal_information({other_user_type})"
assert locals()[user_type].can_edit_personal_information(locals()[other_user_type]) is expected, (
f"{user_type}.can_edit_personal_information({other_user_type})"
)

def test_can_view_personal_information(self):
authorized_prescriber = PrescriberOrganizationWithMembershipFactory(authorized=True).members.first()
Expand Down Expand Up @@ -563,9 +563,9 @@ def test_can_view_personal_information(self):
}
for user_type, user_specs in specs.items():
for other_user_type, expected in user_specs.items():
assert (
locals()[user_type].can_view_personal_information(locals()[other_user_type]) is expected
), f"{user_type}.can_view_personal_information({other_user_type})"
assert locals()[user_type].can_view_personal_information(locals()[other_user_type]) is expected, (
f"{user_type}.can_view_personal_information({other_user_type})"
)

def test_can_add_nir(self):
company = CompanyFactory(with_membership=True)
Expand Down

0 comments on commit 50b8f41

Please sign in to comment.