mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-07 16:50:13 +00:00
feat: sqlite memory connection test
This commit is contained in:
parent
225583f552
commit
fe1ddf9342
1 changed files with 10 additions and 0 deletions
|
|
@ -26,3 +26,13 @@ pub async fn get_memory_sqlite_connection() -> sea_orm::DbConn {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
db
|
db
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use super::get_memory_sqlite_connection;
|
||||||
|
|
||||||
|
#[tokio::test]
|
||||||
|
async fn test_get_memory_sqlite_connection() {
|
||||||
|
get_memory_sqlite_connection().await;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue