mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-24 12:35:31 +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
|
|
@ -25,4 +25,14 @@ pub async fn get_memory_sqlite_connection() -> sea_orm::DbConn {
|
|||
.await
|
||||
.unwrap();
|
||||
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