From 75e61a7cae9a85275e4a18e9df2e1f717d4dc680 Mon Sep 17 00:00:00 2001 From: Justin Duch Date: Tue, 9 Jan 2024 15:23:33 +1100 Subject: [PATCH] add test todos --- src/models/me/mod.rs | 6 +----- src/models/subreddit/mod.rs | 2 ++ src/models/user/mod.rs | 2 ++ 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/models/me/mod.rs b/src/models/me/mod.rs index 05efd1f..4eb688a 100644 --- a/src/models/me/mod.rs +++ b/src/models/me/mod.rs @@ -253,14 +253,10 @@ impl Me { } /// Get submissions by id - /// - /// # Arguments - /// - /// * `ids` - the fullnames of submisions to get, comma seperated + /// `ids`: the fullnames of submisions to get, comma seperated #[maybe_async::maybe_async] pub async fn get_submissions(&self, ids: &str) -> Result { let url = format!("/by_id/{ids}"); - Ok(self.get(&url).await?.json::().await?) } diff --git a/src/models/subreddit/mod.rs b/src/models/subreddit/mod.rs index c8da3c8..834dfa8 100644 --- a/src/models/subreddit/mod.rs +++ b/src/models/subreddit/mod.rs @@ -295,8 +295,10 @@ mod tests { use super::Subreddit; use super::Subreddits; + // TODO: fix this in gha // #[maybe_async::test(feature = "blocking", async(not(feature = "blocking"), tokio::test))] #[maybe_async::async_impl] + #[tokio::test] async fn test_no_auth() { let subreddit = Subreddit::new("astolfo"); diff --git a/src/models/user/mod.rs b/src/models/user/mod.rs index 22b1143..7615347 100644 --- a/src/models/user/mod.rs +++ b/src/models/user/mod.rs @@ -127,8 +127,10 @@ mod tests { use super::User; use crate::util::FeedOption; + // TODO: fix this in gha // #[maybe_async::test(feature = "blocking", async(not(feature = "blocking"), tokio::test))] #[maybe_async::async_impl] + #[tokio::test] async fn test_no_auth() { let user = User::new("beneater");