mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-08 08:30:00 +02:00
update reqwest to stable
This commit is contained in:
parent
9e995122c4
commit
d843809437
3 changed files with 5 additions and 5 deletions
|
@ -7,8 +7,8 @@ edition = "2018"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
failure = "0.1"
|
failure = "0.1"
|
||||||
libxml = { git = "https://github.com/KWARC/rust-libxml.git" }
|
libxml = { git = "https://github.com/KWARC/rust-libxml.git" }
|
||||||
reqwest = { version = "0.10.0-alpha.2", features = ["json"] }
|
reqwest = { version = "0.10", features = ["json", "native-tls"] }
|
||||||
tokio = { version = "=0.2.0-alpha.6" }
|
tokio = { version = "=0.2", features = ["macros"] }
|
||||||
url = "2.1"
|
url = "2.1"
|
||||||
regex = "1.3"
|
regex = "1.3"
|
||||||
encoding_rs = "0.8"
|
encoding_rs = "0.8"
|
||||||
|
|
|
@ -265,7 +265,7 @@ mod tests {
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test(basic_scheduler)]
|
||||||
async fn close_tags() {
|
async fn close_tags() {
|
||||||
let image_dowloader = ImageDownloader::new((2048, 2048));
|
let image_dowloader = ImageDownloader::new((2048, 2048));
|
||||||
let hdyleaflet = fs::read_to_string(r"./resources/tests/planetGnome/fedora31.html")
|
let hdyleaflet = fs::read_to_string(r"./resources/tests/planetGnome/fedora31.html")
|
||||||
|
|
|
@ -732,7 +732,7 @@ impl ArticleScraper {
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::*;
|
use crate::*;
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test(basic_scheduler)]
|
||||||
async fn golem() {
|
async fn golem() {
|
||||||
let config_path = PathBuf::from(r"./resources/tests/golem");
|
let config_path = PathBuf::from(r"./resources/tests/golem");
|
||||||
let out_path = PathBuf::from(r"./test_output");
|
let out_path = PathBuf::from(r"./test_output");
|
||||||
|
@ -746,7 +746,7 @@ mod tests {
|
||||||
assert_eq!(article.author, Some(String::from("Hauke Gierow")));
|
assert_eq!(article.author, Some(String::from("Hauke Gierow")));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test(basic_scheduler)]
|
||||||
async fn phoronix() {
|
async fn phoronix() {
|
||||||
let config_path = PathBuf::from(r"./resources/tests/phoronix");
|
let config_path = PathBuf::from(r"./resources/tests/phoronix");
|
||||||
let out_path = PathBuf::from(r"./test_output");
|
let out_path = PathBuf::from(r"./test_output");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue