From 0ce45a1b8ef1984bf388ef7e4495db9d4769be52 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 13 Apr 2023 08:41:16 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20explications=20sur=20=C3=A9dition=20par?= =?UTF-8?q?titions=20+=20un=20test=20unitaire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/scolar/partition_editor.j2 | 6 +++--- tests/api/test_api_partitions.py | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/templates/scolar/partition_editor.j2 b/app/templates/scolar/partition_editor.j2 index 6fa4f05b..36161631 100644 --- a/app/templates/scolar/partition_editor.j2 +++ b/app/templates/scolar/partition_editor.j2 @@ -188,11 +188,11 @@
Configuration
-
`; diff --git a/tests/api/test_api_partitions.py b/tests/api/test_api_partitions.py index d1138a57..32fc039b 100644 --- a/tests/api/test_api_partitions.py +++ b/tests/api/test_api_partitions.py @@ -120,6 +120,9 @@ def test_formsemestre_partition(api_headers): f"/group/{group['id']}/remove_etudiant/{etud['id']}", headers=headers ) assert repl["group_id"] == group["id"] + # Avec partition (vérifie encodeur JSON) + partitions = GET(f"/formsemestre/{formsemestre_id}/partitions", headers=headers) + assert partitions # Delete partition repl = POST_JSON(f"/partition/{partition_r['id']}/delete", headers=headers) assert repl["OK"] is True