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(storage): add store import and rebind coverage
Steven Enamakel68c55c5246eb
diff --git a/crates/openhuman-core/src/desktop/notifications/store_import_tests.rs b/crates/openhuman-core/src/desktop/notifications/store_import_tests.rsindex 4262aab994..433f5a57fd 100644--- a/crates/openhuman-core/src/desktop/notifications/store_import_tests.rs+++ b/crates/openhuman-core/src/desktop/notifications/store_import_tests.rs@@ -1,8 +1,7 @@use super::*;use crate::desktop::notifications::store as live;use crate::desktop::notifications::types::{- CoreNotificationCategory, CoreNotificationEvent, IntegrationNotification, NotificationSettings,- NotificationStatus,+ CoreNotificationCategory, CoreNotificationEvent, IntegrationNotification, NotificationStatus,};use crate::storage::import::{run_with, Outcome};use chrono::{Duration, Utc};diff --git a/crates/openhuman-core/src/integrations/task_sources/store_import_tests.rs b/crates/openhuman-core/src/integrations/task_sources/store_import_tests.rsindex 60d048da41..44ddba8a62 100644--- a/crates/openhuman-core/src/integrations/task_sources/store_import_tests.rs+++ b/crates/openhuman-core/src/integrations/task_sources/store_import_tests.rs@@ -1,7 +1,7 @@use super::*;use crate::integrations::composio::contract::NormalizedTask;use crate::integrations::task_sources::store as live;-use crate::integrations::task_sources::types::{FilterSpec, ProviderSlug, SourceTarget};+use crate::integrations::task_sources::types::{FilterSpec, SourceTarget};use crate::storage::import::{run_with, Outcome};use crate::storage::rusqlite::params;use serde_json::json;diff --git a/crates/openhuman-core/src/security/approval/store_import_tests.rs b/crates/openhuman-core/src/security/approval/store_import_tests.rsindex 4787f418ab..80a62a441e 100644--- a/crates/openhuman-core/src/security/approval/store_import_tests.rs+++ b/crates/openhuman-core/src/security/approval/store_import_tests.rs@@ -2,7 +2,6 @@ use super::*;use crate::security::approval::store as live;use crate::security::approval::types::{ApprovalDecision, ApprovalSourceContext};use crate::storage::import::{run_with, Outcome};-use crate::storage::DocumentStore;use crate::storage::rusqlite;use chrono::{Duration, Utc};use tempfile::TempDir;diff --git a/crates/openhuman-core/src/security/approval/store_tests.rs b/crates/openhuman-core/src/security/approval/store_tests.rsindex 4b62b757eb..bbf4e266d9 100644--- a/crates/openhuman-core/src/security/approval/store_tests.rs+++ b/crates/openhuman-core/src/security/approval/store_tests.rs@@ -2,7 +2,6 @@ use super::*;use crate::security::approval::types::{ApprovalDecision, PendingApproval};use chrono::{DateTime, Duration, Utc};use serde_json::json;-use crate::storage::{DocumentStore, DocumentStoreExt};use tempfile::TempDir;fn test_config() -> (Config, TempDir) {diff --git a/crates/openhuman-core/src/storage/import/mod_tests.rs b/crates/openhuman-core/src/storage/import/mod_tests.rsindex 915cea8bb2..bde1098f86 100644--- a/crates/openhuman-core/src/storage/import/mod_tests.rs+++ b/crates/openhuman-core/src/storage/import/mod_tests.rs@@ -1,7 +1,6 @@use super::*;use crate::storage::rusqlite;use crate::storage::{MemoryStorage, Scope};-use sha2::Digest as _;use std::collections::BTreeMap;use tempfile::TempDir;use tinystoragedrivers::{DocumentStoreExt, Query};diff --git a/crates/openhuman-core/src/storage/rebind_tests.rs b/crates/openhuman-core/src/storage/rebind_tests.rsindex 0c6dc80188..c51e76c952 100644--- a/crates/openhuman-core/src/storage/rebind_tests.rs+++ b/crates/openhuman-core/src/storage/rebind_tests.rs@@ -1,5 +1,5 @@use super::*;-use crate::storage::{CollectionSpec, DocumentStoreExt, Precondition, Scope};+use crate::storage::{CollectionSpec, Precondition, Scope};use crate::storage::import::Outcome;use std::sync::Mutex;use tempfile::TempDir;