Skip to content

Commit

Permalink
add test todos
Browse files Browse the repository at this point in the history
  • Loading branch information
beanpuppy committed Jan 9, 2024
1 parent dab2003 commit 75e61a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/models/me/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Submissions, RouxError> {
let url = format!("/by_id/{ids}");

Ok(self.get(&url).await?.json::<Submissions>().await?)
}

Expand Down
2 changes: 2 additions & 0 deletions src/models/subreddit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
2 changes: 2 additions & 0 deletions src/models/user/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 75e61a7

Please sign in to comment.