From a78f3b7caa0bafe55c0a36f38fa713ce768f3db8 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 9 Sep 2021 09:16:08 +0200 Subject: [PATCH] [WEI] Fix broken tests Signed-off-by: Yohann D'ANELLO --- apps/wei/tests/test_wei_registration.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/wei/tests/test_wei_registration.py b/apps/wei/tests/test_wei_registration.py index bcd755d8..0bc84013 100644 --- a/apps/wei/tests/test_wei_registration.py +++ b/apps/wei/tests/test_wei_registration.py @@ -12,7 +12,7 @@ from django.test import TestCase from django.urls import reverse from django.utils import timezone from member.models import Membership, Club -from note.models import NoteClub, SpecialTransaction +from note.models import NoteClub, SpecialTransaction, NoteUser from treasury.models import SogeCredit from ..api.views import BusViewSet, BusTeamViewSet, WEIClubViewSet, WEIMembershipViewSet, WEIRegistrationViewSet, \ @@ -65,6 +65,8 @@ class TestWEIRegistration(TestCase): sess["permission_mask"] = 42 sess.save() + NoteUser.objects.create(user=self.user) + self.year = timezone.now().year self.wei = WEIClub.objects.create( name="Test WEI",