Files
thoth/tests/tasks/seed.rs
Dylan Knutson efbe79c539
Some checks failed
CI / Check Style (push) Successful in 14s
CI / Run Tests (push) Failing after 19s
CI / Run Clippy (push) Successful in 1m3s
Initialize loco app
2024-11-30 13:30:38 -08:00

18 lines
371 B
Rust

use loco_rs::{boot::run_task, task, testing};
use serial_test::serial;
use thoth::app::App;
#[tokio::test]
#[serial]
async fn test_can_seed_data() {
let boot = testing::boot_test::<App>().await.unwrap();
assert!(run_task::<App>(
&boot.app_context,
Some(&"seed_data".to_string()),
&task::Vars::default()
)
.await
.is_ok());
}