def create_factories(self): # We want a user who lives somewhere with a membership! super().create_factories() self.processor = UserFactory.create() self.user = UserWithHostFactory.create() self.membership = MembershipFactory.create(user=self.user, group=self.config.member_group) self.other_room = RoomFactory.create()
def create_factories(self): # We want a user who lives somewhere with a membership! super().create_factories() self.user = UserWithHostFactory.create( with_membership=True, membership__group=self.config.member_group, ) self.old_room = self.user.room self.new_room: Room = RoomFactory.create()
def create_factories(self): super().create_factories() self.room = RoomFactory.create()