Added sandboxing to AuthBackend
Review Request #5736 — Created April 24, 2014 and discarded
Added sandboxing to AuthBackend
Writing unit tests for the sandboxing for get_queryset and search_queryset
Unit testing for sandboxing get_queryset and search_queryset for AuthBackend
Description | From | Last Updated |
---|---|---|
This should be pulled out into a separate change. |
david | |
You could use a lambda expression here, rather than defining a new method: self.spy_on(get_enabled_auth_backends, call_fake=lambda: [AuthTestQueryUsersBackend()]) |
david | |
These should also use lambdas. |
david | |
local variable 'hook' is assigned to but never used |
reviewbot | |
Col: 1 W391 blank line at end of file |
reviewbot | |
local variable 'hook' is assigned to but never used |
reviewbot |
- Summary:
-
Added sandboxing to register_auth_backend[WIP] Added sandboxing to AuthBackend
- Description:
-
~ Added sandboxing to register_auth_backend
~ Added sandboxing to AuthBackend
- - Not sure how to raise the KeyError that register_auth_backend raises.
- - Also not sure how to test it
- Summary:
-
[WIP] Added sandboxing to AuthBackendAdded sandboxing to AuthBackend
- Testing Done:
-
+ Unit testing for sandboxing get_queryset and search_queryset for AuthBackend
-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/extensions/templatetags/rb_extensions.py reviewboard/webapi/resources/user.py reviewboard/extensions/tests.py Ignored Files: