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 e5fcd82
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,7 +295,9 @@ mod tests {
use super::Subreddit;
use super::Subreddits;

// TODO: fix this in gha
// #[maybe_async::test(feature = "blocking", async(not(feature = "blocking"), tokio::test))]
#[allow(dead_code)]
#[maybe_async::async_impl]
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,7 +127,9 @@ 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))]
#[allow(dead_code)]
#[maybe_async::async_impl]
async fn test_no_auth() {
let user = User::new("beneater");
Expand Down

0 comments on commit e5fcd82

Please sign in to comment.