chorus/tests/auth.rs

17 lines
415 B
Rust
Raw Normal View History

2023-07-28 17:33:23 +02:00
use chorus::types::RegisterSchema;
2023-05-27 22:46:50 +02:00
mod common;
2023-05-27 22:46:50 +02:00
#[tokio::test]
async fn test_registration() {
let mut bundle = common::setup().await;
2023-07-28 17:33:23 +02:00
let reg = RegisterSchema {
username: "Hiiii".into(),
2023-06-19 10:27:32 +02:00
date_of_birth: Some("2000-01-01".to_string()),
2023-07-28 17:33:23 +02:00
consent: true,
..Default::default()
};
2023-05-27 22:46:50 +02:00
bundle.instance.register_account(&reg).await.unwrap();
common::teardown(bundle).await;
}