The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(tests): clean up assertions in tests
Steven Enamakelb88a7b1d09b0
diff --git a/crates/openhuman-core/src/artifacts/tiny_store_tests.rs b/crates/openhuman-core/src/artifacts/tiny_store_tests.rsindex 036425b57c..f1fc39ad23 100644--- a/crates/openhuman-core/src/artifacts/tiny_store_tests.rs+++ b/crates/openhuman-core/src/artifacts/tiny_store_tests.rs@@ -146,15 +146,13 @@ async fn explicit_artifact_context_binds_records_and_blobs_to_the_same_profile()&context_b,);assert!(artifacts_b.get(&id).await.unwrap().is_none());- assert!(- files_b- .as_ref()- .unwrap()- .metadata(&file.key)- .await- .unwrap()- .is_none()- );+ assert!(files_b+ .as_ref()+ .unwrap()+ .metadata(&file.key)+ .await+ .unwrap()+ .is_none());let card_a = CoreContext::scope(core_a.clone(), async {super::super::store::get_artifact(&workspace, &id).await@@ -333,20 +331,16 @@ async fn deleting_an_artifact_removes_its_card() {.await.unwrap();let id = saved.record.id;- assert!(- super::super::store::get_artifact(&workspace, &id)- .await- .is_ok()- );+ assert!(super::super::store::get_artifact(&workspace, &id)+ .await+ .is_ok());let (removed, notice) = artifacts.delete(&id).await.unwrap();assert!(removed);assert!(notice.is_none(), "{notice:?}");- assert!(- super::super::store::get_artifact(&workspace, &id)- .await- .is_err()- );+ assert!(super::super::store::get_artifact(&workspace, &id)+ .await+ .is_err());}struct NoopPublisher;diff --git a/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs b/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rsindex 9df81c8ca6..722f84cba2 100644--- a/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs+++ b/crates/openhuman-core/src/tools/ops_tests_default_registry_tests.rs@@ -437,7 +437,9 @@ fn all_tools_default_registry_contains_expected_baseline_surface() {"image_info",];assert_contains_all(&names, &expected);- assert!(!names.iter().any(|name| matches!(name.as_str(), "wait" | "wait_loop")));+ assert!(!names+ .iter()+ .any(|name| matches!(name.as_str(), "wait" | "wait_loop")));}#[test]fn all_tools_default_registry_has_no_duplicate_tool_names() {