Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-intuitem committed Feb 23, 2024
1 parent 9e541e6 commit b83c4fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion backend/app_tests/api/test_api_requirement_assessments.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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")
Expand Down
1 change: 0 additions & 1 deletion backend/library/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit b83c4fc

Please sign in to comment.