Lot S : tests serveur repris sans Propositions seed en vigueur (modules, overview), rustfmt
modules.rs : 0 article en vigueur et 35 propositions en cours dans une base neuve (I1, E1 et E2 sont des Propositions seed) ; l'ajout des modules à une base existante se rejoue sur le seed de production du 02/11 (textes en vigueur), comme inertia.rs. overview.rs : le vote porte sur la Proposition seed I1 ; 41 modules à voter, inchangé. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -140,7 +140,9 @@ async fn a_new_base_is_born_with_three_seed_proposals_and_no_article_in_force()
|
||||
assert_eq!(marked.len(), 3, "{group}");
|
||||
let title = &doc["modules"]["title"]["inForce"];
|
||||
assert_eq!((title["seedMinimal"].as_bool(), title["seedProposal"].as_bool()), (Some(true), Some(false)));
|
||||
assert!(doc["modules"]["orders"].as_array().expect("orders").iter().all(|o| o["inForce"]["seedMinimal"] == true));
|
||||
assert!(
|
||||
doc["modules"]["orders"].as_array().expect("orders").iter().all(|o| o["inForce"]["seedMinimal"] == true)
|
||||
);
|
||||
// The counts: no article in force, three more open versions; still 41 modules to vote.
|
||||
let g = c.get(&format!("/api/groups/{group}")).await;
|
||||
assert_eq!((g["docs"][0]["inForce"].as_u64(), g["docs"][0]["open"].as_u64()), (Some(0), Some(35)), "{group}");
|
||||
@@ -203,7 +205,8 @@ const PREAMBULE: [(&str, &str, &str); 3] = [
|
||||
/// The seed production runs on 2026-11-02 (3f10a0e): I1, E1 and E2 in force, seeds a
|
||||
/// minima, I1 and E1 at level 3 and 4.
|
||||
fn production_seed() -> Value {
|
||||
let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/fixtures/seed-production-2026-11-02/acte-engagement-certification.json");
|
||||
let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR"))
|
||||
.join("tests/fixtures/seed-production-2026-11-02/acte-engagement-certification.json");
|
||||
serde_json::from_str(&std::fs::read_to_string(path).expect("seed")).expect("json")
|
||||
}
|
||||
|
||||
@@ -426,7 +429,12 @@ async fn the_production_base_turns_its_untouched_texts_into_seed_proposals_once(
|
||||
};
|
||||
assert_eq!(
|
||||
changes,
|
||||
[line("essai", "E1", "4"), line("essai", "E2", "4"), line("essai", "I1", "3"), line("monnaie-libre", "E2", "4")]
|
||||
[
|
||||
line("essai", "E1", "4"),
|
||||
line("essai", "E2", "4"),
|
||||
line("essai", "I1", "3"),
|
||||
line("monnaie-libre", "E2", "4")
|
||||
]
|
||||
);
|
||||
let mut c = Client::of(&state);
|
||||
c.login("Chiara", false).await;
|
||||
|
||||
Reference in New Issue
Block a user