Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

style: reformat long assertions in tokenjuice tests

Steven Enamakelf862c4c34281
diff --git a/crates/openhuman-core/src/config/schema/tokenjuice_tests.rs b/crates/openhuman-core/src/config/schema/tokenjuice_tests.rs
index 27dfa085cf..6c40b33333 100644
--- a/crates/openhuman-core/src/config/schema/tokenjuice_tests.rs
+++ b/crates/openhuman-core/src/config/schema/tokenjuice_tests.rs
@@ -40,5 +40,8 @@ fn an_older_config_without_the_new_keys_gets_the_on_defaults() {
fn legacy_repl_save_setting_is_ignored() {
let c: TokenjuiceConfig = toml::from_str("repl_save_enabled = true").unwrap();
assert!(c.repl_handle_enabled);
- assert_eq!(toml::to_string(&c).unwrap().contains("repl_save_enabled"), false);
+ assert_eq!(
+ toml::to_string(&c).unwrap().contains("repl_save_enabled"),
+ false
+ );
}
diff --git a/crates/openhuman-core/src/inference/tokenjuice/config_patch_tests.rs b/crates/openhuman-core/src/inference/tokenjuice/config_patch_tests.rs
index 7764b5ddb1..72652d5bcb 100644
--- a/crates/openhuman-core/src/inference/tokenjuice/config_patch_tests.rs
+++ b/crates/openhuman-core/src/inference/tokenjuice/config_patch_tests.rs
@@ -29,7 +29,9 @@ fn legacy_repl_save_patch_field_is_ignored() {
serde_json::from_str(r#"{ "repl_save_enabled": true }"#).unwrap();
patch.apply(&mut cfg);
assert!(cfg.repl_handle_enabled);
- assert!(!serde_json::to_string(&cfg).unwrap().contains("repl_save_enabled"));
+ assert!(!serde_json::to_string(&cfg)
+ .unwrap()
+ .contains("repl_save_enabled"));
}
#[test]