daily-aujourdhui/tests/tasks/seed.rs
Lucien Cartier-Tilet e868891d26
Some checks failed
CI / Check Style (push) Successful in 1m37s
CI / Run Clippy (push) Successful in 3m11s
CI / Run Tests (push) Failing after 5m9s
style: format Rust source code
2024-12-05 02:05:45 +01:00

18 lines
382 B
Rust

use daily_aujourdhui::app::App;
use loco_rs::{boot::run_task, task, testing};
use serial_test::serial;
#[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());
}