diff --git a/backend/app_tests/api/test_api_requirement_assessments.py b/backend/app_tests/api/test_api_requirement_assessments.py index 9aace25a6..646b0ed6d 100644 --- a/backend/app_tests/api/test_api_requirement_assessments.py +++ b/backend/app_tests/api/test_api_requirement_assessments.py @@ -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, ) @@ -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), }, )