summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <ar@bash.org.pl>2020-03-07 09:40:54 +0100
committerRobert Gerus <ar@bash.org.pl>2020-03-07 09:41:11 +0100
commit0ec0493a8b77814df9e590a0cfb805429bd25e58 (patch)
tree49593049ced247debd1a0102f99850bb0a3ad170
parent76787761620c54a4646b8673ab2c515a764c7c4f (diff)
downloadspejstore-0ec0493a8b77814df9e590a0cfb805429bd25e58.tar.gz
spejstore-0ec0493a8b77814df9e590a0cfb805429bd25e58.tar.bz2
spejstore-0ec0493a8b77814df9e590a0cfb805429bd25e58.zip
Mock moar.
-rw-r--r--auth/mock_auth.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/auth/mock_auth.py b/auth/mock_auth.py
index ff39317..ac0fa1c 100644
--- a/auth/mock_auth.py
+++ b/auth/mock_auth.py
@@ -5,12 +5,15 @@ from django.utils.functional import SimpleLazyObject
class MockUser(object):
is_active = True
is_staff = True
+ is_authenticated = True
pk = True
def has_module_perms(*args):
return True
def has_perm(*args):
return True
+ def has_perms(*args):
+ return True
def __init__(self, name="mock"):
if len(User.objects.filter()) < 1:
user = User.objects.create_user(name, name + "@hackerspace.pl", name + "pass")