Fix test unitaire jury BUT (bug dans le setup test)

This commit is contained in:
Emmanuel Viennet 2023-05-14 19:29:25 +02:00 committed by iziram
parent da827e50ad
commit e355c2f780
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -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)