diff --git a/backend/app_tests/api/test_api_requirement_assessments.py b/backend/app_tests/api/test_api_requirement_assessments.py index 460b538d0..6f29fa154 100644 --- a/backend/app_tests/api/test_api_requirement_assessments.py +++ b/backend/app_tests/api/test_api_requirement_assessments.py @@ -1,5 +1,5 @@ import pytest -from rest_framework.status import HTTP_403_FORBIDDEN, HTTP_400_BAD_REQUEST +from rest_framework.status import HTTP_400_BAD_REQUEST from rest_framework.test import APIClient from core.models import ( ComplianceAssessment, @@ -129,6 +129,7 @@ def test_get_requirement_assessments(self, authenticated_client): def test_create_requirement_assessments(self, authenticated_client): """test to create requirement assessments with the API with authentication""" + """nobody has permission to do that, so it will fail""" EndpointTestsQueries.Auth.import_object(authenticated_client, "Framework") folder = Folder.objects.create(name="test") diff --git a/backend/library/views.py b/backend/library/views.py index 54970328e..29083fb71 100644 --- a/backend/library/views.py +++ b/backend/library/views.py @@ -45,7 +45,6 @@ def list(self, request, *args, **kwargs): perm=Permission.objects.get(codename="view_library"), folder=Folder.get_root_folder(), ): - print("coucou") return Response( status=status.HTTP_403_FORBIDDEN, )