use rocie_client::{ apis::{api_get_auth_recipe_api::recipe_by_id, api_set_auth_recipe_api::add_recipe}, models::RecipeStub, }; use crate::testenv::{TestEnv, init::function_name, log::request}; #[tokio::test] async fn test_recipe_roundtrip() { let env = TestEnv::new(function_name!()).await; let recipe_id = request!( env, add_recipe(RecipeStub { path: "/asia/curry".to_owned(), content: "just make the curry".to_owned(), }) ); let output = request!(env, recipe_by_id(recipe_id)); assert_eq!(output.path, "/asia/curry".to_owned()); assert_eq!(output.content, "just make the curry".to_owned()); }