init
This commit is contained in:
17
tests/tasks/create_user.rs
Normal file
17
tests/tasks/create_user.rs
Normal file
@@ -0,0 +1,17 @@
|
||||
use music_metadata_manager::app::App;
|
||||
use loco_rs::{task, testing::prelude::*};
|
||||
|
||||
use loco_rs::boot::run_task;
|
||||
use serial_test::serial;
|
||||
|
||||
#[tokio::test]
|
||||
#[serial]
|
||||
async fn test_can_run_create_user() {
|
||||
let boot = boot_test::<App>().await.unwrap();
|
||||
|
||||
assert!(
|
||||
run_task::<App>(&boot.app_context, Some(&"create_user".to_string()), &task::Vars::default())
|
||||
.await
|
||||
.is_ok()
|
||||
);
|
||||
}
|
3
tests/tasks/mod.rs
Normal file
3
tests/tasks/mod.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
pub mod create_user;
|
Reference in New Issue
Block a user