mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 04:59:37 -04:00
More formatting fixes for tests
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -7,25 +7,25 @@ from app.utils.user import user_has_permissions
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"permissions",
|
||||
(
|
||||
[
|
||||
[
|
||||
(
|
||||
# Route has one of the permissions which the user has
|
||||
"manage_service"
|
||||
],
|
||||
[
|
||||
),
|
||||
(
|
||||
# Route has more than one of the permissions which the user has
|
||||
"manage_templates",
|
||||
"manage_service",
|
||||
],
|
||||
[
|
||||
),
|
||||
(
|
||||
# Route has one of the permissions which the user has, and one they do not
|
||||
"manage_service",
|
||||
"send_messages",
|
||||
],
|
||||
[
|
||||
),
|
||||
(
|
||||
# Route has no specific permissions required
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_permissions(
|
||||
client_request,
|
||||
@@ -50,12 +50,12 @@ def test_permissions(
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"permissions",
|
||||
(
|
||||
[
|
||||
[
|
||||
(
|
||||
# Route has a permission which the user doesn’t have
|
||||
"send_messages"
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_permissions_forbidden(
|
||||
client_request,
|
||||
|
||||
Reference in New Issue
Block a user