chore(itam): Ensure when creating Model ITAMAsset that the asset number field is populated

ref: #855 #737
This commit is contained in:
2025-07-06 22:48:47 +09:30
parent 45abdc2e00
commit cf7fb57583
2 changed files with 4 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class SerializerAdd:
client.force_login(self.add_user)
response = client.post(url, data=self.add_data)
response = client.post(url, data=self.add_data, content_type = 'application/json')
assert str(response.renderer_context['view'].get_serializer().__class__.__name__).endswith('ModelSerializer')

View File

@ -10,7 +10,9 @@ class ViewSetTestCases(
AssetBaseViewSetInheritedCases
):
add_data: dict = {}
add_data: dict = {
'asset_number': '1354'
}
kwargs_create_item: dict = {}