fix: remove dev test that relies on local file

This commit is contained in:
drbh 2024-02-12 10:53:13 -05:00
parent 3db6f0bb39
commit a86e726079

View File

@ -669,7 +669,7 @@ pub(crate) struct ErrorResponse {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
use std::path::Path;
use tokenizers::Tokenizer; use tokenizers::Tokenizer;
pub(crate) async fn get_tokenizer() -> Tokenizer { pub(crate) async fn get_tokenizer() -> Tokenizer {
@ -679,14 +679,6 @@ mod tests {
Tokenizer::from_file(filename).unwrap() Tokenizer::from_file(filename).unwrap()
} }
#[test]
fn test_hub_tokenizer_config() {
let config = HubTokenizerConfig::from_file(Path::new("tokenizer.json"));
assert_eq!(config.chat_template, Some("test".to_string()));
assert_eq!(config.bos_token, Some("test".to_string()));
assert_eq!(config.eos_token, Some("test".to_string()));
}
#[test] #[test]
fn test_hub_nested_tokens_tokenizer_config() { fn test_hub_nested_tokens_tokenizer_config() {
// this is a subset of the tokenizer.json file // this is a subset of the tokenizer.json file