forked from ScoDoc/ScoDoc
Ajout explications sur édition partitions + un test unitaire
This commit is contained in:
parent
a9cfaef381
commit
0ce45a1b8e
@ -188,11 +188,11 @@
|
|||||||
<div class=config>
|
<div class=config>
|
||||||
Configuration
|
Configuration
|
||||||
<hr>
|
<hr>
|
||||||
<label>
|
<label title="Calculer et afficher les rangs dans les groupes de cette partition ?">
|
||||||
<input class=rang type=checkbox ${partition.bul_show_rank?"checked":""} data-attr=bul_show_rank> Rang bulletins
|
<input class=rang type=checkbox ${partition.bul_show_rank?"checked":""} data-attr=bul_show_rank> Rang bulletins
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label title="Doit-on afficher les groupes de cette partition dans les listes ?">
|
||||||
<input class=groupe type=checkbox ${partition.show_in_lists?"checked":""} data-attr=show_in_lists> Groupes bulletins et tableaux
|
<input class=groupe type=checkbox ${partition.show_in_lists?"checked":""} data-attr=show_in_lists> Afficher sur bulletins et tableaux
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
@ -120,6 +120,9 @@ def test_formsemestre_partition(api_headers):
|
|||||||
f"/group/{group['id']}/remove_etudiant/{etud['id']}", headers=headers
|
f"/group/{group['id']}/remove_etudiant/{etud['id']}", headers=headers
|
||||||
)
|
)
|
||||||
assert repl["group_id"] == group["id"]
|
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
|
# Delete partition
|
||||||
repl = POST_JSON(f"/partition/{partition_r['id']}/delete", headers=headers)
|
repl = POST_JSON(f"/partition/{partition_r['id']}/delete", headers=headers)
|
||||||
assert repl["OK"] is True
|
assert repl["OK"] is True
|
||||||
|
Loading…
Reference in New Issue
Block a user