tests: fix indentation (#47943)
This commit is contained in:
parent
550e5d1bf6
commit
206fec2122
|
@ -33,10 +33,10 @@ from django.utils.six import text_type
|
|||
|
||||
from django_rbac.models import VIEW_OP
|
||||
from django_rbac.utils import (
|
||||
get_operation,
|
||||
get_ou_model,
|
||||
get_permission_model,
|
||||
get_role_model,
|
||||
get_operation,
|
||||
get_ou_model,
|
||||
get_permission_model,
|
||||
get_role_model,
|
||||
)
|
||||
|
||||
from authentic2.custom_user.models import User
|
||||
|
@ -896,9 +896,9 @@ def test_manager_user_roles_visibility(app, simple_user, admin, ou1, ou2):
|
|||
other_user.set_password('auietsrn')
|
||||
other_role = Role.objects.create(name='Other role', slug='other-role', ou=ou1)
|
||||
view_role1_perm = get_permission_model().objects.create(
|
||||
operation=get_operation(VIEW_OP),
|
||||
target_ct=ContentType.objects.get_for_model(Role),
|
||||
target_id=role1.pk)
|
||||
operation=get_operation(VIEW_OP),
|
||||
target_ct=ContentType.objects.get_for_model(Role),
|
||||
target_id=role1.pk)
|
||||
other_role.permissions.add(get_view_user_perm())
|
||||
other_role.permissions.add(view_role1_perm)
|
||||
other_role.save()
|
||||
|
|
Loading…
Reference in New Issue