feat(gpodder_sqlite): set up testing
This commit is contained in:
parent
b44a47fefd
commit
705b347775
5 changed files with 90 additions and 1 deletions
|
|
@ -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 })
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue