Skip to content

Commit

Permalink
Fix pytest
Browse files Browse the repository at this point in the history
Now score is [1, 4] with nist csf 1.1
and remove debug code
  • Loading branch information
eric-intuitem committed May 1, 2024
1 parent 7dbbdec commit 76da672
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions backend/app_tests/api/test_api_compliance_assessments.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ def test_get_compliance_assessments(self, test):
"framework": {
"id": str(Framework.objects.all()[0].id),
"str": str(Framework.objects.all()[0]),
"min_score": 0,
"max_score": 100,
"min_score": 1,
"max_score": 4,
},
},
user_group=test.user_group,
Expand Down
5 changes: 0 additions & 5 deletions backend/library/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,6 @@ def import_framework(self, library_object: Library):
default_locale=library_object.default_locale, # Change this in the future ?
is_published=True,
)
print("framework_object1", self.framework_data.get("scores_definition"))
print(
"framework_object2",
self.framework_data.get("implementation_groups_definition"),
)
for requirement_node in self._requirement_nodes:
requirement_node.import_requirement_node(framework_object)

Expand Down

0 comments on commit 76da672

Please sign in to comment.