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
mod prepare_tests;

#[tokio::test]
async fn test_query_for_entity() -> Result<(), Box<dyn std::error::Error>> {
    let mut client = prepare_tests::prepare_test().await?;
    let entity = client.query_for_entity("Andre_Schamberger").await?;
    assert_eq!(entity.name, Some("Andre_Schamberger".to_string()));

    let result = client.query_for_entity("asdf").await;
    assert!(result.is_err());
    Ok(())
}