chore(core): refactor viewset checks so they work for model TicketBase

ref: #892 #889
This commit is contained in:
2025-07-25 07:46:34 +09:30
parent 18c1c4029e
commit 4dbef179c9
2 changed files with 9 additions and 4 deletions

View File

@ -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({

View File

@ -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({