Set recipes as public in test (search process only search for public recipes)
This commit is contained in:
parent
3e91f34303
commit
24e901a041
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue