From 61046e1b31fbe0cfd8f9ef73f15961e851d3f17d Mon Sep 17 00:00:00 2001 From: Tobias Schoofs Date: Wed, 3 Apr 2024 20:00:03 +0100 Subject: [PATCH] [formatting] formatting error in tests --- crates/edgen_server/tests/settings_tests.rs | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/crates/edgen_server/tests/settings_tests.rs b/crates/edgen_server/tests/settings_tests.rs index 070f5c2..b56bf17 100644 --- a/crates/edgen_server/tests/settings_tests.rs +++ b/crates/edgen_server/tests/settings_tests.rs @@ -97,7 +97,6 @@ fn test_battery() { test_ai_endpoint_with_download(Endpoint::AudioTranscriptions, "default"); test_ai_endpoint_with_download(Endpoint::Embeddings, "default"); - // we have downloaded, we should not download again test_ai_endpoint_no_download(Endpoint::ChatCompletions, "default"); test_ai_endpoint_no_download(Endpoint::AudioTranscriptions, "default"); @@ -131,12 +130,8 @@ fn test_battery() { "transcriptions", ); - let new_embeddings_dir = my_models_dir.clone() - + &format!( - "{}{}", - path::MAIN_SEPARATOR, - "embeddings", - ); + let new_embeddings_dir = + my_models_dir.clone() + &format!("{}{}", path::MAIN_SEPARATOR, "embeddings",); common::set_model_dir(Endpoint::ChatCompletions, &new_chat_completions_dir); common::set_model_dir(Endpoint::AudioTranscriptions, &new_audio_transcriptions_dir); @@ -344,16 +339,9 @@ fn test_ai_endpoint(endpoint: Endpoint, model: &str, download: bool) { ) } Endpoint::Embeddings => { - common::test_message(&format!( - "embeddints endpoint with download: {}", - download - )); + common::test_message(&format!("embeddints endpoint with download: {}", download)); ( - common::make_url(&[ - common::BASE_URL, - common::EMBEDDINGS_URL, - common::STATUS_URL, - ]), + common::make_url(&[common::BASE_URL, common::EMBEDDINGS_URL, common::STATUS_URL]), common::embeddings_custom_body(model), ) }