forked from ScoDoc/ScoDoc
Modif route /moduleimpl/<int:moduleimpl_id>/evaluations
This commit is contained in:
parent
6306e8ca26
commit
a5a168666f
@ -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/<int:moduleimpl_id>")
|
||||
@api_web_bp.route("/evaluations/<int:moduleimpl_id>")
|
||||
@bp.route("/moduleimpl/<int:moduleimpl_id>/evaluations")
|
||||
@api_web_bp.route("/moduleimpl/<int:moduleimpl_id>/evaluations")
|
||||
@login_required
|
||||
@scodoc
|
||||
@permission_required(Permission.ScoView)
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- mode: python -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
SCOVERSION = "9.3.24"
|
||||
SCOVERSION = "9.3.25"
|
||||
|
||||
SCONAME = "ScoDoc"
|
||||
|
||||
|
@ -32,11 +32,11 @@ def test_evaluations(api_headers):
|
||||
Test 'evaluations'
|
||||
|
||||
Route :
|
||||
- /evaluations/<int:moduleimpl_id>
|
||||
- /moduleimpl/<int:moduleimpl_id>/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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user