Set recipes as public in test (search process only search for public recipes)

This commit is contained in:
Greg Burri 2025-05-24 12:29:41 +02:00
parent 3e91f34303
commit 24e901a041

View file

@ -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<i64> {
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)
}