test(project_management): Project Serializer Validation clean up

ref: #15 #248 #357
This commit is contained in:
2024-10-23 20:01:56 +09:30
parent 5fd3123c9b
commit f53c6d0f6d

View File

@ -119,8 +119,8 @@ class ProjectValidationAPI(
data={
"name": 'another project',
"organization": self.organization.id,
'external_ref': 1,
'external_system': int(Project.Ticket_ExternalSystem.CUSTOM_1)
"external_ref": 1,
"external_system": int(Project.Ticket_ExternalSystem.CUSTOM_1)
},
)
@ -128,12 +128,6 @@ class ProjectValidationAPI(
serializer.save()
print(f'[Debug] instance {serializer.instance.__dict__}')
for project in Project.objects.all():
print(f'[Trace] project found: {project.__dict__}')
assert (
serializer.instance.external_ref == 1 and
serializer.instance.external_system == int(Project.Ticket_ExternalSystem.CUSTOM_1)