mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-19 07:30:58 +00:00
Add tests to check fetching sub/user/oauth
This commit is contained in:
parent
6cd53abd42
commit
0ca0eefaa4
4 changed files with 25 additions and 2 deletions
|
@ -129,3 +129,10 @@ async fn user(name: &str) -> Result<User, String> {
|
|||
}
|
||||
})
|
||||
}
|
||||
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
|
||||
async fn test_fetching_user() {
|
||||
let user = user("spez").await;
|
||||
assert!(user.is_ok());
|
||||
assert!(user.unwrap().karma > 100);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue