sqlite_store: Add some more basic tests

This commit is contained in:
Lennart
2025-11-05 23:17:59 +01:00
parent d843909084
commit 33d14a9ba0
9 changed files with 229 additions and 64 deletions

View File

@@ -8,6 +8,9 @@ use tokio::sync::OnceCell;
static DB: OnceCell<SqlitePool> = OnceCell::const_new();
mod addressbook_store;
mod calendar_store;
async fn get_test_db() -> SqlitePool {
DB.get_or_init(async || {
let db = SqlitePool::connect("sqlite::memory:").await.unwrap();