genius-core-client 0.4.0

Genius Core Client Library. Written in Rust and using PyO3 for Python bindings.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod prepare_tests;

#[tokio::test]
async fn test_query_for_value() -> Result<(), Box<dyn std::error::Error>> {
    let mut client = prepare_tests::prepare_test().await?;
    let result = client.query_for_value("Andre_Schamberger.email").await?;
    assert_eq!(result[0].as_str().unwrap(), "Gerald.Paucek@gmail.com");

    let result = client.query_for_value("asdf").await;
    assert!(result.is_err());

    Ok(())
}