dialtone_sqlx 0.1.0

Dialtone SQLx Back-End
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use dialtone_sqlx::control::user::create_with_actor::create_user_with_default_actor;
use dialtone_test_util::{test_action, test_pg};

#[tokio::test]
async fn create_user_with_default_actor_test() {
    test_pg::test_pg(move |pool| async move {
        let action =
            create_user_with_default_actor(&pool, "test_user", "example.com", "secretpassword")
                .await;
        test_action!(action);
    })
    .await;
}