This commit is contained in:
philipp 2023-10-24 08:16:17 +02:00
parent 8ebc06e445
commit 6d4ebda4bc
3 changed files with 17 additions and 14 deletions

View File

@ -153,7 +153,7 @@ mod test {
.get("_flash") .get("_flash")
.expect("Expected flash cookie"); .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(); let boat = Boat::find_by_id(&db, 1).await.unwrap();
assert_eq!(boat.name, "Haichiii"); assert_eq!(boat.name, "Haichiii");
@ -267,7 +267,7 @@ mod test {
.get("_flash") .get("_flash")
.expect("Expected flash cookie"); .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()) Boat::find_by_name(&db, "completely-new-boat".into())
.await .await

View File

@ -127,10 +127,7 @@ mod test {
.get("_flash") .get("_flash")
.expect("Expected flash cookie"); .expect("Expected flash cookie");
assert_eq!( assert_eq!(flash_cookie.value(), "7:successEvent gelöscht");
flash_cookie.value(),
"7:successSuccessfully deleted the event"
);
let event = PlannedEvent::find_by_id(&db, 1).await; let event = PlannedEvent::find_by_id(&db, 1).await;
assert_eq!(event, None); assert_eq!(event, None);
@ -265,10 +262,7 @@ mod test {
.get("_flash") .get("_flash")
.expect("Expected flash cookie"); .expect("Expected flash cookie");
assert_eq!( assert_eq!(flash_cookie.value(), "7:successEvent hinzugefügt");
flash_cookie.value(),
"7:successSuccessfully planned the event"
);
let event = PlannedEvent::find_by_id(&db, 2).await.unwrap(); let event = PlannedEvent::find_by_id(&db, 2).await.unwrap();
assert_eq!(event.name, "my-cool-new-event"); assert_eq!(event.name, "my-cool-new-event");

View File

@ -502,7 +502,10 @@ mod test {
.get("_flash") .get("_flash")
.expect("Expected flash cookie"); .expect("Expected flash cookie");
assert_eq!(flash_cookie.value(), "7:successSuccessfully updated log"); assert_eq!(
flash_cookie.value(),
"7:successAusfahrt korrekt eingetragen"
);
} }
//Kiosk mode //Kiosk mode
@ -637,7 +640,10 @@ mod test {
.get("_flash") .get("_flash")
.expect("Expected flash cookie"); .expect("Expected flash cookie");
assert_eq!(flash_cookie.value(), "7:successSuccessfully updated log"); assert_eq!(
flash_cookie.value(),
"7:successAusfahrt korrekt eingetragen"
);
} }
#[sqlx::test] #[sqlx::test]
@ -827,7 +833,7 @@ mod test {
assert_eq!( assert_eq!(
flash_cookie.value(), 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") .get("_flash")
.expect("Expected flash cookie"); .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( async fn cant_start_trip(