1
0
Fork 0
mirror of https://gitlab.com/news-flash/article_scraper.git synced 2025-07-08 16:40:00 +02:00

add clean links test

This commit is contained in:
Jan Lukas Gernert 2023-03-09 21:24:29 +01:00
parent c5c6b788c8
commit 3ece2522bb
5 changed files with 3258 additions and 178 deletions

View file

@ -19,7 +19,7 @@ async fn run_test(name: &str) {
let xpath_ctx = crate::FullTextParser::get_xpath_ctx(&document).unwrap();
crate::FullTextParser::strip_junk(&xpath_ctx, None, &empty_config);
crate::FullTextParser::fix_urls(&xpath_ctx, &url);
let mut article = Article {
title: None,
@ -126,6 +126,11 @@ async fn citylab_1() {
run_test("citylab-1").await
}
#[tokio::test]
async fn clean_links() {
run_test("clean-links").await
}
#[tokio::test]
async fn webmd_1() {
run_test("webmd-1").await