From a5a168666f2aeb8a7ed7300180feb90620a2eb56 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 30 Jul 2022 08:23:22 +0200 Subject: [PATCH] Modif route /moduleimpl//evaluations --- app/api/evaluations.py | 4 ++-- sco_version.py | 2 +- tests/api/test_api_evaluations.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/api/evaluations.py b/app/api/evaluations.py index 2bd6859ad..db3fe2fe7 100644 --- a/app/api/evaluations.py +++ b/app/api/evaluations.py @@ -21,8 +21,8 @@ from app.scodoc.sco_evaluation_db import do_evaluation_get_all_notes from app.scodoc.sco_permissions import Permission -@bp.route("/evaluations/") -@api_web_bp.route("/evaluations/") +@bp.route("/moduleimpl//evaluations") +@api_web_bp.route("/moduleimpl//evaluations") @login_required @scodoc @permission_required(Permission.ScoView) diff --git a/sco_version.py b/sco_version.py index 618b90d77..9637104cc 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.3.24" +SCOVERSION = "9.3.25" SCONAME = "ScoDoc" diff --git a/tests/api/test_api_evaluations.py b/tests/api/test_api_evaluations.py index 2ece5461d..59ff3c050 100644 --- a/tests/api/test_api_evaluations.py +++ b/tests/api/test_api_evaluations.py @@ -32,11 +32,11 @@ def test_evaluations(api_headers): Test 'evaluations' Route : - - /evaluations/ + - /moduleimpl//evaluations """ moduleimpl_id = 1 r = requests.get( - f"{API_URL}/evaluations/{moduleimpl_id}", + f"{API_URL}/moduleimpl/{moduleimpl_id}/evaluations", headers=api_headers, verify=CHECK_CERTIFICATE, )