populate command call once for all tests

This commit is contained in:
maréchal
2023-04-28 11:36:02 +02:00
parent 66fcb76cb5
commit af4c9cbdd4
14 changed files with 77 additions and 117 deletions

View File

@ -9,8 +9,6 @@ from election.models import Election
class MainElection(TestCase):
def setUp(self):
call_command("populate")
self.election = Election.objects.all().first()
self.public_group = Group.objects.get(id=settings.SITH_GROUP_PUBLIC_ID)
self.subscriber_group = Group.objects.get(name=settings.SITH_MAIN_MEMBERS_GROUP)