mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 01:12:08 +01:00 
			
		
		
		
	[WEI] Fix broken tests
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
		@@ -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",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user