mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-02 04:37:35 +03:00
test(client): add test for gated and quarantined
This commit is contained in:
parent
e3f5cb9322
commit
c167859672
1 changed files with 8 additions and 0 deletions
|
@ -515,3 +515,11 @@ async fn test_fetching_subreddit() {
|
|||
let subreddit = subreddit("rust", false).await;
|
||||
assert!(subreddit.is_ok());
|
||||
}
|
||||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
async fn test_gated_and_quarantined() {
|
||||
let quarantined = subreddit("edgy", true).await;
|
||||
assert!(quarantined.is_ok());
|
||||
let gated = subreddit("drugs", true).await;
|
||||
assert!(gated.is_ok());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue