From d103b14142a697d8efde7e985428a67b1198f361 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 14 May 2023 19:29:25 +0200 Subject: [PATCH] Fix test unitaire jury BUT (bug dans le setup test) --- sco_version.py | 2 +- tests/unit/yaml_setup.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sco_version.py b/sco_version.py index e43776aa8..3e13b5efe 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.4.74" +SCOVERSION = "9.4.75" SCONAME = "ScoDoc" diff --git a/tests/unit/yaml_setup.py b/tests/unit/yaml_setup.py index 4967af233..f24b92b79 100644 --- a/tests/unit/yaml_setup.py +++ b/tests/unit/yaml_setup.py @@ -120,7 +120,9 @@ def create_formsemestre( modules = [ m for m in formsemestre.formation.modules.filter_by(semestre_id=semestre_id) - if (not m.parcours) or ({p.id for p in m.parcours} & sem_parcours_ids) + if (not m.parcours) # module de tronc commun + or (not sem_parcours_ids) # semestre sans parcours => tous + or ({p.id for p in m.parcours} & sem_parcours_ids) ] for module in modules: modimpl = ModuleImpl(module=module, responsable_id=a_user.id)