From 24e901a04199d7582e8be42aca013cb083009db2 Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Sat, 24 May 2025 12:29:41 +0200 Subject: [PATCH] Set recipes as public in test (search process only search for public recipes) --- backend/src/data/db/recipe.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/data/db/recipe.rs b/backend/src/data/db/recipe.rs index 17812db..67744c8 100644 --- a/backend/src/data/db/recipe.rs +++ b/backend/src/data/db/recipe.rs @@ -965,8 +965,6 @@ pub fn normalize_tag(tag: &str) -> String { #[cfg(test)] mod tests { - use std::u32; - use super::*; use chrono::Days; @@ -1006,6 +1004,7 @@ mod tests { async fn add_recipe(connection: &Connection, user_id: i64, title: &str) -> Result { let recipe_id = connection.create_recipe(user_id).await?; connection.set_recipe_title(recipe_id, title).await?; + connection.set_recipe_is_public(recipe_id, true).await?; Ok(recipe_id) }