forked from ScoDoc/ScoDoc
Fix (imports, tests). API unit tests breaks on BUT config (bul. court).
This commit is contained in:
parent
fae9fbdd09
commit
3844ae46d1
@ -512,6 +512,8 @@ def formation_semestre_niveaux_warning(formation: Formation, semestre_idx: int)
|
||||
"""
|
||||
annee = (semestre_idx - 1) // 2 + 1 # année BUT
|
||||
ref_comp: ApcReferentielCompetences = formation.referentiel_competence
|
||||
if not ref_comp:
|
||||
return "" # détecté ailleurs...
|
||||
niveaux_sans_ue_by_parcour = {} # { parcour.code : [ ue ... ] }
|
||||
parcours_ids = {
|
||||
uep.parcours_id
|
||||
|
@ -28,7 +28,6 @@
|
||||
from flask.templating import render_template
|
||||
|
||||
from app import db
|
||||
from app.but import cursus_but
|
||||
from app.models import UniteEns, Matiere, Module, FormSemestre, ModuleImpl
|
||||
from app.models.validations import ScolarFormSemestreValidation
|
||||
from app.scodoc import codes_cursus
|
||||
@ -48,6 +47,8 @@ def html_edit_formation_apc(
|
||||
- Les ressources
|
||||
- Les SAÉs
|
||||
"""
|
||||
from app.but import cursus_but
|
||||
|
||||
cursus = formation.get_cursus()
|
||||
assert cursus.APC_SAE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user