feat(gpodder_sqlite): set up testing

This commit is contained in:
Jef Roosens 2025-03-19 10:47:07 +01:00
parent b44a47fefd
commit 705b347775
Signed by: Jef Roosens
GPG key ID: 21FD3D77D56BAF49
5 changed files with 90 additions and 1 deletions

View file

@ -24,4 +24,10 @@ impl SqliteRepository {
Ok(Self { pool })
}
pub fn in_memory() -> Result<Self, gpodder::AuthErr> {
let pool = super::initialize_db_in_memory(true)?;
Ok(Self { pool })
}
}