Skip to content

Commit

Permalink
ci: fix api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Apr 24, 2024
1 parent 42f994f commit adfe5d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/app_tests/api/test_api_requirement_assessments.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def test_get_requirement_assessments(self, authenticated_client):
"requirement": RequirementNode.objects.create(
name="test", folder=folder, assessable=False
),
"score": None,
},
)

Expand Down Expand Up @@ -82,6 +83,7 @@ def test_update_requirement_assessments(self, authenticated_client):
"requirement": RequirementNode.objects.create(
name="test", folder=folder, assessable=False
),
"score": None,
},
{
"status": REQUIREMENT_ASSESSMENT_STATUS2,
Expand Down Expand Up @@ -114,6 +116,7 @@ def test_get_requirement_assessments(self, test):
"folder": test.folder,
"compliance_assessment": compliance_assessment,
"requirement": RequirementNode.objects.all()[0],
"score": None,
},
{
"folder": {"id": str(test.folder.id), "str": test.folder.name},
Expand Down Expand Up @@ -150,6 +153,7 @@ def test_create_requirement_assessments(self, test):
"compliance_assessment": str(compliance_assessment.id),
"requirement": str(RequirementNode.objects.all()[0].id),
"applied_controls": [str(applied_control.id)],
"score": None,
},
{
"compliance_assessment": {
Expand Down Expand Up @@ -189,6 +193,7 @@ def test_update_requirement_assessments(self, test):
"folder": test.folder,
"compliance_assessment": compliance_assessment,
"requirement": RequirementNode.objects.all()[0],
"score": None,
},
{
"status": REQUIREMENT_ASSESSMENT_STATUS2,
Expand All @@ -197,6 +202,7 @@ def test_update_requirement_assessments(self, test):
"compliance_assessment": str(compliance_assessment2.id),
"requirement": str(RequirementNode.objects.all()[1].id),
"applied_controls": [str(applied_control.id)],
"score": 50,
},
{
"folder": {"id": str(test.folder.id), "str": test.folder.name},
Expand Down

0 comments on commit adfe5d9

Please sign in to comment.