new newbie flag

This commit is contained in:
2026-06-04 19:49:16 +02:00
parent 0e1973fbac
commit c940ce0fdc
17 changed files with 114 additions and 28 deletions
+5 -3
View File
@@ -301,8 +301,9 @@ mod test {
always_show: event.always_show,
is_locked: event.is_locked,
trip_type_id: None,
allow_guests: event.allow_guests,
};
event.update(&pool, &user, &cancel_update).await;
event.update(&pool, &user, &cancel_update).await.unwrap();
// Rower received notification
let notifications = Notification::for_user(&pool, &rower).await;
@@ -331,13 +332,14 @@ mod test {
always_show: event.always_show,
is_locked: event.is_locked,
trip_type_id: None,
allow_guests: event.allow_guests,
};
event.update(&pool, &user, &update).await;
event.update(&pool, &user, &update).await.unwrap();
assert!(Notification::for_user(&pool, &rower).await.is_empty());
assert!(Notification::for_user(&pool, &cox.user).await.is_empty());
// Cancel event again
event.update(&pool, &user, &cancel_update).await;
event.update(&pool, &user, &cancel_update).await.unwrap();
// Rower is removed if notification is accepted
assert!(event.is_rower_registered(&pool, &rower).await);