1
0
forked from ScoDoc/ScoDoc

Modif route /moduleimpl/<int:moduleimpl_id>/evaluations

This commit is contained in:
Emmanuel Viennet 2022-07-30 08:23:22 +02:00
parent 6306e8ca26
commit a5a168666f
3 changed files with 5 additions and 5 deletions

View File

@ -21,8 +21,8 @@ from app.scodoc.sco_evaluation_db import do_evaluation_get_all_notes
from app.scodoc.sco_permissions import Permission from app.scodoc.sco_permissions import Permission
@bp.route("/evaluations/<int:moduleimpl_id>") @bp.route("/moduleimpl/<int:moduleimpl_id>/evaluations")
@api_web_bp.route("/evaluations/<int:moduleimpl_id>") @api_web_bp.route("/moduleimpl/<int:moduleimpl_id>/evaluations")
@login_required @login_required
@scodoc @scodoc
@permission_required(Permission.ScoView) @permission_required(Permission.ScoView)

View File

@ -1,7 +1,7 @@
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "9.3.24" SCOVERSION = "9.3.25"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"

View File

@ -32,11 +32,11 @@ def test_evaluations(api_headers):
Test 'evaluations' Test 'evaluations'
Route : Route :
- /evaluations/<int:moduleimpl_id> - /moduleimpl/<int:moduleimpl_id>/evaluations
""" """
moduleimpl_id = 1 moduleimpl_id = 1
r = requests.get( r = requests.get(
f"{API_URL}/evaluations/{moduleimpl_id}", f"{API_URL}/moduleimpl/{moduleimpl_id}/evaluations",
headers=api_headers, headers=api_headers,
verify=CHECK_CERTIFICATE, verify=CHECK_CERTIFICATE,
) )