refactor(core): Update Tests to cater for inheritence changes
ref: #871 #861
This commit is contained in:
@ -53,7 +53,7 @@ def spectacular_request_serializers( serializer_type = 'Model'):
|
||||
description='.',
|
||||
parameters = [
|
||||
OpenApiParameter(
|
||||
name = 'ticket_model',
|
||||
name = 'model_name',
|
||||
description = 'Enter the Ticket type. This is the name of the Ticket sub-model.',
|
||||
location = OpenApiParameter.PATH,
|
||||
type = str,
|
||||
@ -94,7 +94,7 @@ def spectacular_request_serializers( serializer_type = 'Model'):
|
||||
description = '.',
|
||||
parameters =[
|
||||
OpenApiParameter(
|
||||
name = 'ticket_model',
|
||||
name = 'model_name',
|
||||
description = 'Enter the ticket type. This is the name of the Ticket sub-model.',
|
||||
location = OpenApiParameter.PATH,
|
||||
type = str,
|
||||
@ -118,7 +118,7 @@ def spectacular_request_serializers( serializer_type = 'Model'):
|
||||
description='.',
|
||||
parameters = [
|
||||
OpenApiParameter(
|
||||
name = 'ticket_model',
|
||||
name = 'model_name',
|
||||
description = 'Enter the ticket type. This is the name of the Ticket sub-model.',
|
||||
location = OpenApiParameter.PATH,
|
||||
type = str,
|
||||
@ -150,7 +150,7 @@ def spectacular_request_serializers( serializer_type = 'Model'):
|
||||
description='.',
|
||||
parameters = [
|
||||
OpenApiParameter(
|
||||
name = 'ticket_model',
|
||||
name = 'model_name',
|
||||
description = 'Enter the ticket type. This is the name of the Ticket sub-model.',
|
||||
location = OpenApiParameter.PATH,
|
||||
type = str,
|
||||
@ -238,7 +238,7 @@ class ViewSet( SubModelViewSet ):
|
||||
'is_deleted'
|
||||
]
|
||||
|
||||
model_kwarg = 'ticket_model'
|
||||
model_kwarg = 'model_name'
|
||||
|
||||
search_fields = [
|
||||
'title',
|
||||
@ -260,7 +260,7 @@ class ViewSet( SubModelViewSet ):
|
||||
viewname = '_api_ticket_sub-list',
|
||||
request = self.request,
|
||||
kwargs = {
|
||||
'ticket_model': self.kwargs[self.model_kwarg],
|
||||
'model_name': self.kwargs[self.model_kwarg],
|
||||
}
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user