Skip to content

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

chore(tests): add store test modules for notifications, task sources, and approval

Steven Enamakel2c48d226850e
diff --git a/crates/openhuman-core/src/desktop/notifications/store_tests.rs b/crates/openhuman-core/src/desktop/notifications/store_tests.rs
index 01e08b0ced..a49e054a1f 100644
--- a/crates/openhuman-core/src/desktop/notifications/store_tests.rs
+++ b/crates/openhuman-core/src/desktop/notifications/store_tests.rs
@@ -16,6 +16,8 @@ use tempfile::TempDir;
fn test_config(dir: &TempDir) -> Config {
let mut config = Config::default();
config.workspace_dir = dir.path().to_path_buf();
+ // These tests exercise the legacy SQLite tables themselves.
+ config.storage.url = Some("classic".into());
config
}
diff --git a/crates/openhuman-core/src/integrations/task_sources/store_tests.rs b/crates/openhuman-core/src/integrations/task_sources/store_tests.rs
index c11b3ebf36..4b37a7b52c 100644
--- a/crates/openhuman-core/src/integrations/task_sources/store_tests.rs
+++ b/crates/openhuman-core/src/integrations/task_sources/store_tests.rs
@@ -4,12 +4,14 @@ use serde_json::json;
use tempfile::TempDir;
fn test_config(tmp: &TempDir) -> Config {
- let config = Config {
+ let mut config = Config {
workspace_dir: tmp.path().join("workspace"),
action_dir: tmp.path().join("workspace"),
config_path: tmp.path().join("config.toml"),
..Config::default()
};
+ // These tests exercise the legacy SQLite tables themselves.
+ config.storage.url = Some("classic".into());
std::fs::create_dir_all(&config.workspace_dir).unwrap();
config
}
diff --git a/crates/openhuman-core/src/security/approval/store_tests.rs b/crates/openhuman-core/src/security/approval/store_tests.rs
index e9194ccc5c..35f1f7d604 100644
--- a/crates/openhuman-core/src/security/approval/store_tests.rs
+++ b/crates/openhuman-core/src/security/approval/store_tests.rs
@@ -6,10 +6,12 @@ use tempfile::TempDir;
fn test_config() -> (Config, TempDir) {
let dir = TempDir::new().unwrap();
- let config = Config {
+ let mut config = Config {
workspace_dir: dir.path().to_path_buf(),
..Config::default()
};
+ // These tests exercise the legacy SQLite tables themselves.
+ config.storage.url = Some("classic".into());
(config, dir)
}