Skip to content

Commit

Permalink
test(assistance): Project Taask ticket Viewset Serializer checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc committed Nov 25, 2024
1 parent cd7fc86 commit 4f85713
Showing 1 changed file with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
from django.test import TestCase

from core.tests.abstract.test_ticket_viewset import Ticket, TicketViewSetPermissionsAPI
from core.tests.abstract.test_ticket_viewset import Ticket, TicketViewSetBase, TicketViewSetPermissionsAPI, TicketViewSet



class ViewSetBase( TicketViewSetBase ):

ticket_type = 'project_task'

ticket_type_enum = Ticket.TicketType.PROJECT_TASK



class TicketProjectTaskPermissionsAPI(
ViewSetBase,
TicketViewSetPermissionsAPI,
TestCase,
):

ticket_type = 'project_task'
pass

ticket_type_enum = Ticket.TicketType.PROJECT_TASK


class TicketProjectTaskViewSet(
TicketViewSet,
ViewSetBase,
TestCase,
):

pass

0 comments on commit 4f85713

Please sign in to comment.