forked from ScoDoc/ScoDoc
Fix test unitaire jury BUT (bug dans le setup test)
This commit is contained in:
parent
da827e50ad
commit
e355c2f780
@ -1,7 +1,7 @@
|
|||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
SCOVERSION = "9.4.74"
|
SCOVERSION = "9.4.75"
|
||||||
|
|
||||||
SCONAME = "ScoDoc"
|
SCONAME = "ScoDoc"
|
||||||
|
|
||||||
|
@ -120,7 +120,9 @@ def create_formsemestre(
|
|||||||
modules = [
|
modules = [
|
||||||
m
|
m
|
||||||
for m in formsemestre.formation.modules.filter_by(semestre_id=semestre_id)
|
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:
|
for module in modules:
|
||||||
modimpl = ModuleImpl(module=module, responsable_id=a_user.id)
|
modimpl = ModuleImpl(module=module, responsable_id=a_user.id)
|
||||||
|
Loading…
Reference in New Issue
Block a user