Signature of has_permission in MockPerm differs from PermissionCache
Reported by: |
Felix Schwarz <felix.schwarz@…> |
Owned by: |
Felix Schwarz <felix.schwarz@…> |
Priority:
|
normal
|
Milestone:
|
0.11.6
|
Component:
|
general
|
Version:
|
0.11-stable
|
Severity:
|
minor
|
Keywords:
|
testing
|
Cc:
|
|
Branch:
|
|
Release Notes:
|
|
API Changes:
|
|
Internal Changes:
|
|
I noticed MockPerm.has_permission has a different interface than PermissionCache.has_permission.
When the signature of MockPerm.has_permission is changed, please also change MockPerm's require and __call__ signatures so that they exactly accepts the same parameters as the PermissionCache (and not just any parameter) - otherwise some tests using MockPerm will succeed even though wrong parameters are used and the code will fail in production.
Change History
(4)
Keywords: |
testing added
|
Milestone: |
0.12 → 0.11.6
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Owner: |
set to Felix Schwarz <felix.schwarz@…>
|
Patch welcomed.