""" This module holds the tests cases of the ``likes`` app. """

from mtp.apps.common.tests.test_cases import MTPTestCase

from .likeable_testapp.models import Comment, Proposition


class BaseLikeTestCase(MTPTestCase):
    """ Base test case to test likes app. """

    @classmethod
    def setUpTestData(cls):
        super().setUpTestData()

        cls.trainee1 = cls.trainee
        cls.trainee2 = cls.trainees[1]
        cls.trainee3 = cls.trainees[2]

        cls.proposition1 = Proposition.objects.create(text="proposition1")
        cls.proposition2 = Proposition.objects.create(text="proposition2")

        cls.comment1 = Comment.objects.create(text="comment1")
