diff options
| author | Alexander Todorov <atodorov@mrsenko.com> | 2020-09-14 13:28:17 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-14 12:28:17 +0200 |
| commit | 5fab16392fc00702a5d0288378892ec48fe67dc6 (patch) | |
| tree | b7c191f19978645cee2df9027d571db302d5523c /tests/auth_tests | |
| parent | bcc2befd0e9c1885e45b46d0b0bcdc11def8b249 (diff) | |
Fixed #32003 -- Added obj argument to has_perm() methods in tests.
Diffstat (limited to 'tests/auth_tests')
| -rw-r--r-- | tests/auth_tests/test_context_processors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auth_tests/test_context_processors.py b/tests/auth_tests/test_context_processors.py index 281ea744d8..e492050bcb 100644 --- a/tests/auth_tests/test_context_processors.py +++ b/tests/auth_tests/test_context_processors.py @@ -12,7 +12,7 @@ class MockUser: def has_module_perms(self, perm): return perm == 'mockapp' - def has_perm(self, perm): + def has_perm(self, perm, obj=None): return perm == 'mockapp.someperm' |
