From 6d4ebda4bc94e5b738823f9624e01167690a02f7 Mon Sep 17 00:00:00 2001 From: philipp Date: Tue, 24 Oct 2023 08:16:17 +0200 Subject: [PATCH] fix ci --- src/tera/admin/boat.rs | 4 ++-- src/tera/admin/planned_event.rs | 10 ++-------- src/tera/log.rs | 17 +++++++++++++---- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/tera/admin/boat.rs b/src/tera/admin/boat.rs index a370900..6ff6200 100644 --- a/src/tera/admin/boat.rs +++ b/src/tera/admin/boat.rs @@ -153,7 +153,7 @@ mod test { .get("_flash") .expect("Expected flash cookie"); - assert_eq!(flash_cookie.value(), "7:successSuccessfully updated boat"); + assert_eq!(flash_cookie.value(), "7:successBoot bearbeitet"); let boat = Boat::find_by_id(&db, 1).await.unwrap(); assert_eq!(boat.name, "Haichiii"); @@ -267,7 +267,7 @@ mod test { .get("_flash") .expect("Expected flash cookie"); - assert_eq!(flash_cookie.value(), "7:successSuccessfully created boat"); + assert_eq!(flash_cookie.value(), "7:successBoot hinzugefügt"); Boat::find_by_name(&db, "completely-new-boat".into()) .await diff --git a/src/tera/admin/planned_event.rs b/src/tera/admin/planned_event.rs index 2208d8b..5208f18 100644 --- a/src/tera/admin/planned_event.rs +++ b/src/tera/admin/planned_event.rs @@ -127,10 +127,7 @@ mod test { .get("_flash") .expect("Expected flash cookie"); - assert_eq!( - flash_cookie.value(), - "7:successSuccessfully deleted the event" - ); + assert_eq!(flash_cookie.value(), "7:successEvent gelöscht"); let event = PlannedEvent::find_by_id(&db, 1).await; assert_eq!(event, None); @@ -265,10 +262,7 @@ mod test { .get("_flash") .expect("Expected flash cookie"); - assert_eq!( - flash_cookie.value(), - "7:successSuccessfully planned the event" - ); + assert_eq!(flash_cookie.value(), "7:successEvent hinzugefügt"); let event = PlannedEvent::find_by_id(&db, 2).await.unwrap(); assert_eq!(event.name, "my-cool-new-event"); diff --git a/src/tera/log.rs b/src/tera/log.rs index aa8fb3b..eb0382f 100644 --- a/src/tera/log.rs +++ b/src/tera/log.rs @@ -502,7 +502,10 @@ mod test { .get("_flash") .expect("Expected flash cookie"); - assert_eq!(flash_cookie.value(), "7:successSuccessfully updated log"); + assert_eq!( + flash_cookie.value(), + "7:successAusfahrt korrekt eingetragen" + ); } //Kiosk mode @@ -637,7 +640,10 @@ mod test { .get("_flash") .expect("Expected flash cookie"); - assert_eq!(flash_cookie.value(), "7:successSuccessfully updated log"); + assert_eq!( + flash_cookie.value(), + "7:successAusfahrt korrekt eingetragen" + ); } #[sqlx::test] @@ -827,7 +833,7 @@ mod test { assert_eq!( flash_cookie.value(), - "5:errorLogbook with ID 1 could not be updated!" + "5:errorEintrag 1 konnte nicht abgesendet werden!" ); } @@ -874,7 +880,10 @@ mod test { .get("_flash") .expect("Expected flash cookie"); - assert_eq!(flash_cookie.value(), "7:successSuccessfully updated log"); + assert_eq!( + flash_cookie.value(), + "7:successAusfahrt korrekt eingetragen" + ); } async fn cant_start_trip(