mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-15 09:12:18 +00:00
refactor(core): flatten test modules
This commit is contained in:
parent
327f940a0a
commit
40e7b024b7
27 changed files with 18 additions and 13 deletions
|
|
@ -4,6 +4,11 @@ version = "0.1.0"
|
|||
edition.workspace = true
|
||||
license.workspace = true
|
||||
repository.workspace = true
|
||||
autotests = false
|
||||
|
||||
[[test]]
|
||||
name = "workspace_crate_allowlist"
|
||||
path = "tests/workspace_crate_allowlist.rs"
|
||||
|
||||
[dependencies]
|
||||
base64.workspace = true
|
||||
|
|
|
|||
|
|
@ -18,5 +18,5 @@ pub async fn audio_transcription(request: AudioTranscriptionRequest<'_>) -> Resu
|
|||
}
|
||||
|
||||
#[cfg(all(test, feature = "bedrock-auth"))]
|
||||
#[path = "../../tests/audio_transcription/tests.rs"]
|
||||
#[path = "../../tests/audio_transcription.rs"]
|
||||
mod tests;
|
||||
|
|
|
|||
|
|
@ -58,5 +58,5 @@ pub fn chat_completions_decline_reason(
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "../../tests/chat_completions/tests.rs"]
|
||||
#[path = "../../tests/chat_completions.rs"]
|
||||
mod tests;
|
||||
|
|
|
|||
|
|
@ -28,5 +28,5 @@ pub async fn messages_stream(request: MessagesRequest<'_>) -> Result<reqwest::Re
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "../../tests/messages/tests.rs"]
|
||||
#[path = "../../tests/messages.rs"]
|
||||
mod tests;
|
||||
|
|
|
|||
|
|
@ -20,5 +20,5 @@ pub async fn perform_ocr(request: OcrRequest) -> Result<OcrResponseData, crate::
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "../../tests/ocr/tests.rs"]
|
||||
#[path = "../../tests/ocr.rs"]
|
||||
pub(crate) mod tests;
|
||||
|
|
|
|||
|
|
@ -131,5 +131,5 @@ pub(crate) fn prepare_ocr_call<C: OcrProviderConfig>(
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "../../tests/ocr/prepare.rs"]
|
||||
#[path = "../../tests/ocr_prepare.rs"]
|
||||
mod tests;
|
||||
|
|
|
|||
|
|
@ -214,5 +214,5 @@ impl ChatCompletionsProviderConfig for AnthropicChatCompletionsConfig {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "../../../../tests/providers/anthropic/chat_completions/tests.rs"]
|
||||
#[path = "../../../../tests/anthropic_chat_completions.rs"]
|
||||
mod tests;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
pub(crate) mod polling;
|
||||
#[cfg(test)]
|
||||
#[path = "../../../../../tests/providers/azure_ai/ocr/document_intelligence/tests.rs"]
|
||||
#[path = "../../../../../tests/azure_document_intelligence_ocr.rs"]
|
||||
mod tests;
|
||||
pub mod transformation;
|
||||
pub mod types;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
pub mod document_intelligence;
|
||||
#[cfg(test)]
|
||||
#[path = "../../../../tests/providers/azure_ai/ocr/tests.rs"]
|
||||
#[path = "../../../../tests/azure_ai_ocr.rs"]
|
||||
mod tests;
|
||||
pub mod transformation;
|
||||
|
|
|
|||
|
|
@ -299,5 +299,5 @@ impl ChatCompletionsProviderConfig for BedrockChatCompletionsConfig {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "../../../../tests/providers/bedrock/chat_completions/tests.rs"]
|
||||
#[path = "../../../../tests/bedrock_chat_completions.rs"]
|
||||
mod tests;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#[cfg(test)]
|
||||
#[path = "../../../../tests/providers/mistral/ocr/tests.rs"]
|
||||
#[path = "../../../../tests/mistral_ocr.rs"]
|
||||
mod tests;
|
||||
pub mod transformation;
|
||||
pub mod types;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#[cfg(test)]
|
||||
#[path = "../../../../tests/providers/reducto/ocr/tests.rs"]
|
||||
#[path = "../../../../tests/reducto_ocr.rs"]
|
||||
mod tests;
|
||||
pub mod transformation;
|
||||
pub mod types;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#[cfg(test)]
|
||||
#[path = "../../../../../tests/providers/vertex_ai/ocr/deepseek/tests.rs"]
|
||||
#[path = "../../../../../tests/vertex_ai_deepseek_ocr.rs"]
|
||||
mod tests;
|
||||
pub mod transformation;
|
||||
pub mod types;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
pub mod deepseek;
|
||||
#[cfg(test)]
|
||||
#[path = "../../../../tests/providers/vertex_ai/ocr/tests.rs"]
|
||||
#[path = "../../../../tests/vertex_ai_ocr.rs"]
|
||||
mod tests;
|
||||
pub mod transformation;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue