Skip to content

Commit

Permalink
fix: api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Apr 3, 2024
1 parent c526d39 commit 36287b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions backend/app_tests/api/test_api_compliance_assessments.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def test_get_compliance_assessments(self, test):
"framework": Framework.objects.all()[0],
},
{
"project": {"id": str(project.id), "str": project.name},
"project": {"id": str(project.id), "str": project.folder.name + "/" + project.name},
"framework": {
"id": str(Framework.objects.all()[0].id),
"str": str(Framework.objects.all()[0]),
Expand Down Expand Up @@ -146,7 +146,7 @@ def test_create_compliance_assessments(self, test):
"framework": str(Framework.objects.all()[0].id),
},
{
"project": {"id": str(project.id), "str": project.name},
"project": {"id": str(project.id), "str": project.folder.name + "/" + project.name},
"framework": {
"id": str(Framework.objects.all()[0].id),
"str": str(Framework.objects.all()[0]),
Expand Down Expand Up @@ -186,7 +186,7 @@ def test_update_compliance_assessments(self, test):
"framework": str(Framework.objects.all()[1].id),
},
{
"project": {"id": str(project.id), "str": project.name},
"project": {"id": str(project.id), "str": project.folder.name + "/" + project.name},
"framework": {
"id": str(Framework.objects.all()[0].id),
"str": str(Framework.objects.all()[0]),
Expand Down
6 changes: 3 additions & 3 deletions backend/app_tests/api/test_api_risk_assessments.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def test_get_risk_assessments(self, test):
"risk_matrix": risk_matrix,
},
{
"project": {"id": str(project.id), "str": project.name},
"project": {"id": str(project.id), "str": project.folder.name + "/" + project.name},
"risk_matrix": {"id": str(risk_matrix.id), "str": str(risk_matrix)},
},
user_group=test.user_group,
Expand All @@ -147,7 +147,7 @@ def test_create_risk_assessments(self, test):
"risk_matrix": str(risk_matrix.id),
},
{
"project": {"id": str(project.id), "str": project.name},
"project": {"id": str(project.id), "str": project.folder.name + "/" + project.name},
"risk_matrix": {"id": str(risk_matrix.id), "str": str(risk_matrix)},
},
user_group=test.user_group,
Expand Down Expand Up @@ -185,7 +185,7 @@ def test_update_risk_assessments(self, test):
"risk_matrix": str(risk_matrix2.id),
},
{
"project": {"id": str(project.id), "str": project.name},
"project": {"id": str(project.id), "str": project.folder.name + "/" + project.name},
"risk_matrix": {"id": str(risk_matrix.id), "str": str(risk_matrix)},
},
user_group=test.user_group,
Expand Down

0 comments on commit 36287b8

Please sign in to comment.