Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adumbidiot committed Apr 9, 2024
1 parent b79970a commit 214184f
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 33 deletions.
106 changes: 80 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/rss-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
quick-xml = { version = "0.31.0", features = [ "serialize" ] }
reqwest = { version = "0.12.2", features = [ "http2" ], default-features = false }
reqwest = { version = "0.12.3", features = [ "http2" ], default-features = false }
serde = { version = "1.0.197", features = ["derive"] }
thiserror = "1.0.58"
tokio = { version = "1.37.0", features = [ "rt" ] }
Expand Down
8 changes: 4 additions & 4 deletions lib/rss-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ mod tests {

#[tokio::test]
async fn it_works() {
// https://nitter.privacydev.net/dog_rates/media/rss
// https://nitter.poast.org/dog_rates/rss
let url = "https://nitter.poast.org/dog_rates/rss";
let client = Client::new();
let feed = client
.get_feed("https://nitter.privacydev.net/dog_rates/media/rss") // https://nitter.poast.org/dog_rates/rss
.await
.expect("failed to get feed");
let feed = client.get_feed(url).await.expect("failed to get feed");
dbg!(feed);
}
}
4 changes: 2 additions & 2 deletions lib/twitter-scraper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ edition = "2021"
license = "MIT OR Apache-2.0"

[dependencies]
cookie_store = "0.20"
cookie_store = "0.21"
form_urlencoded = "1.2.1"
once_cell = "1.19.0"
regex = "1.10.4"
reqwest = { version = "0.12.2", default-features = false, features = [ "cookies", "json" ] }
reqwest = { version = "0.12.3", default-features = false, features = [ "cookies", "json" ] }
reqwest_cookie_store = "0.7.0"
serde = { version = "1.0.197", features = [ "derive" ] }
serde_json = "1.0.115"
Expand Down

0 comments on commit 214184f

Please sign in to comment.