-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tests] Update TestMultitenantAdminMixin to use default operator group #106
Comments
I am working on this Issue 😊 |
I think I need some more time to work on this Issue. If someone wants to work on it can go ahead. |
I will be working on this. |
@nemesisdesign after removing Please how do I proceed from here? |
@lehone-hp This is happening because Operation does not have permission to access those pages that's why it is giving error |
If you will remove these lines then it will not show any error. openwisp-users/openwisp_users/tests/utils.py Lines 85 to 98 in 8a411dd
But I don't think it's a solution. nemesisdesign can give a better solution for it. |
I think this is correct. |
Okay, I will assign the appropriate permissions and then open a PR |
…openwisp#106 - Update the _create_operator test method to assign default user groups - Removed operator_permission_filters = [] - Remove get_operator_permissions Fixes openwisp#106
…openwisp#106 - Update the _create_operator test method to assign default user groups - Removed operator_permission_filters = [] - Remove get_operator_permissions Fixes openwisp#106
…openwisp#106 - Update the _create_operator test method to assign default user groups - Removed operator_permission_filters = [] - Remove get_operator_permissions Fixes openwisp#106
In this test utility code (which is reused across openwisp modules):
openwisp-users/openwisp_users/tests/utils.py
Lines 23 to 39 in cf5cd64
The test expects the permission of the operator to be defined as a class attribute.
This is obsolete, because in more recent versions of OpenWISP we added two default
auth.Group instances
: operator and administrator.operator_permission_filters = []
get_operator_permissions
Open a pull request in each openwisp module to remove the
operator_permission_filters
and ensuring the new code works: https://github.com/search?q=org%3Aopenwisp+operator_permission_filters&type=CodeThe text was updated successfully, but these errors were encountered: