Skip to content
Permalink
Browse files

Fix tests

  • Loading branch information...
ibot3 committed Sep 9, 2019
1 parent 8f8822e commit 8ad4128ab4ae90d4311bfdb947f2a24d0249bd78
Showing with 6 additions and 1 deletion.
  1. +4 −0 sipa/model/sample/user.py
  2. +1 −1 sipa/templates/usersuite/_index_status.html
  3. +1 −0 tests/model/test_user.py
@@ -204,6 +204,10 @@ def payment_details(self):
purpose=self.id.value,
)

@property
def is_member(self):
return True

userdb = None

finance_information = SampleFinanceInformation()
@@ -37,7 +37,7 @@ <h2 id="hot-buttons">{{ _("Häufige Aktionen") }}</h2>
{{ _("Webmailer") }}
</a>
{% endif %}
{% if current_user.is_member %}
{% if current_user.is_member and current_user.membership_end_date.capabilities.edit %}
{% if current_user.membership_end_date == None %}
<a href="{{ terminate_membership_url }}" class="btn btn-danger">
<span class="glyphicon glyphicon-remove-circle"></span>
@@ -39,6 +39,7 @@ class DegenerateUser(BaseUser):
userdb_status = None
use_cache = None
payment_details = None
is_member = None


class DegenerateUserTestCase(TestCase):

0 comments on commit 8ad4128

Please sign in to comment.
You can’t perform that action at this time.