refactor(test): move existing gpodder_sqlite tests into a separate crate

This refactor allows new implementations of the store contract to reuse
the same tests, ensuring all implementations support the same behavior.
This commit is contained in:
Jef Roosens 2026-05-06 20:38:04 +02:00
parent 8954104954
commit 8498fe9661
Signed by: Jef Roosens
GPG key ID: 21FD3D77D56BAF49
10 changed files with 89 additions and 89 deletions

View file

@ -297,3 +297,14 @@ impl gpodder::GpodderDeviceStore for SqliteRepository {
.map_err(AuthErr::from)
}
}
#[cfg(test)]
mod tests {
use crate::SqliteRepository;
#[test]
fn test_insert_devices() {
let store = SqliteRepository::in_memory().unwrap();
gpodder_test::device::test_insert_devices(store);
}
}