From b535796652079d381108fb4c97139d863134a53f Mon Sep 17 00:00:00 2001 From: Alexis Date: Tue, 27 Feb 2024 14:21:17 +0100 Subject: [PATCH] fix requirement assessments tests --- backend/app_tests/api/test_api_requirement_assessments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app_tests/api/test_api_requirement_assessments.py b/backend/app_tests/api/test_api_requirement_assessments.py index 2d0fdcacd..49c5ce1e8 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_400_BAD_REQUEST +from rest_framework.status import HTTP_403_FORBIDDEN from rest_framework.test import APIClient from core.models import ( ComplianceAssessment, @@ -161,7 +161,7 @@ def test_create_requirement_assessments(self, test): }, base_count=-1, fails=True, - expected_status=HTTP_400_BAD_REQUEST + expected_status=HTTP_403_FORBIDDEN ) def test_update_requirement_assessments(self, test):