test(project_management): Project Serializer Validation clean up
ref: #15 #248 #357
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user