chore(core): refactor viewset checks so they work for model TicketBase
ref: #892 #889
This commit is contained in:
@ -80,9 +80,12 @@ class MetadataTestCases(
|
||||
'opened_by': self.view_user
|
||||
})
|
||||
|
||||
|
||||
kwargs = self.kwargs_create_item.copy()
|
||||
kwargs['organization'] = organization
|
||||
|
||||
self.item = self.model.objects.create(
|
||||
organization = organization,
|
||||
**self.kwargs_create_item
|
||||
**kwargs
|
||||
)
|
||||
|
||||
self.kwargs_create_item_diff_org.update({
|
||||
|
@ -78,9 +78,11 @@ class ViewSetBase:
|
||||
'opened_by': self.view_user
|
||||
})
|
||||
|
||||
kwargs = self.kwargs_create_item.copy()
|
||||
kwargs['organization'] = organization
|
||||
|
||||
self.item = self.model.objects.create(
|
||||
organization = organization,
|
||||
**self.kwargs_create_item
|
||||
**kwargs
|
||||
)
|
||||
|
||||
self.kwargs_create_item_diff_org.update({
|
||||
|
Reference in New Issue
Block a user