Ajout explications sur édition partitions + un test unitaire

This commit is contained in:
Emmanuel Viennet 2023-04-13 08:41:16 +02:00 committed by iziram
parent ffca42917d
commit 3bfeebbcb2
2 changed files with 6 additions and 3 deletions

View File

@ -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>
`; `;

View File

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