Skip to content

Commit

Permalink
fix: requirement assessments api test during auth creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Feb 12, 2024
1 parent 017e6fa commit e1b3376
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/app_tests/api/test_api_requirement_assessments.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ def test_create_requirement_assessments(self, authenticated_client):
"requirement": str(RequirementNode.objects.all()[0].id),
"security_measures": [str(security_measure.id)],
},
{
"compliance_assessment": {"id": str(compliance_assessment.id), "str": compliance_assessment.name}
},
base_count=-1,
)

Expand Down Expand Up @@ -186,7 +189,7 @@ def test_update_requirement_assessments(self, authenticated_client):
},
{
"folder": str(Folder.get_root_folder().id),
"compliance_assessment": str(compliance_assessment.id),
"compliance_assessment": {"id": str(compliance_assessment.id), "str": compliance_assessment.name},
"requirement": str(RequirementNode.objects.all()[0].id),
},
)
Expand Down

0 comments on commit e1b3376

Please sign in to comment.