Skip to content

Commit

Permalink
Fix tests (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
MagdaN committed Aug 23, 2021
1 parent aa8b91e commit f325dad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions legal_advice_builder/tests/permissions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

from django.contrib.auth.mixins import UserPassesTestMixin


class AlwaysAllowToAccessToAdminMixin(UserPassesTestMixin):

def test_func(self):
return True
2 changes: 2 additions & 0 deletions legal_advice_builder/tests/project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@

WSGI_APPLICATION = 'legal_advice_demo.wsgi.application'

LEGAL_ADVICE_BUILDER_PERMISSION_MIXIN = 'legal_advice_builder.tests.permissions.AlwaysAllowToAccessToAdminMixin'


DATABASES = {
'default': {
Expand Down

0 comments on commit f325dad

Please sign in to comment.