Fix test classes

This commit is contained in:
Raphael Michel
2023-02-01 12:27:15 +01:00
parent cb734510ac
commit 8b81ef6f43
6 changed files with 55 additions and 68 deletions

View File

@@ -48,10 +48,9 @@ class PluginSignalTest(TestCase):
"""
This test case tests the EventPluginSignal handler
"""
@classmethod
def setUpTestData(cls):
def setUp(self):
o = Organizer.objects.create(name='Dummy', slug='dummy')
cls.event = Event.objects.create(
self.event = Event.objects.create(
organizer=o, name='Dummy', slug='dummy',
date_from=now(),
)