Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shouya committed Aug 5, 2024
1 parent 15f7340 commit 07f2640
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ description: "A test feed"

let config: SourceConfig = serde_yaml::from_str(YAML_CONFIG).unwrap();
let source = Source::try_from(config).unwrap();
let feed: Feed = source.fetch_feed(None, None).await.unwrap();
let ctx = FilterContext::new();
let feed: Feed = source.fetch_feed(&ctx, None).await.unwrap();
assert_eq!(feed.title(), "Test Feed");
assert_eq!(feed.format(), FeedFormat::Rss);
}
Expand All @@ -265,7 +266,8 @@ description: "A test feed"

let config: SourceConfig = serde_yaml::from_str(YAML_CONFIG).unwrap();
let source = Source::try_from(config).unwrap();
let feed: Feed = source.fetch_feed(None, None).await.unwrap();
let ctx = FilterContext::new();
let feed: Feed = source.fetch_feed(&ctx, None).await.unwrap();
assert_eq!(feed.title(), "Test Feed");
assert_eq!(feed.format(), FeedFormat::Atom);
}
Expand Down

0 comments on commit 07f2640

Please sign in to comment.