mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-07 16:15:32 +02:00
fix tests
This commit is contained in:
parent
2c76a89f9d
commit
1584649eb4
3 changed files with 3 additions and 3 deletions
|
@ -1 +1 @@
|
||||||
<article><iframe id="video" width="100%" height="500" src="https://www.youtube.com/embed/8KjaIumu-jI?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="" title="RIGGED! Arena Shuffler is BROKEN | 13 Land Mono Red Burn"><empty></empty></iframe></article>
|
<article><iframe id="video" width="100%" height="400" src="https://www.youtube.com/embed/8KjaIumu-jI?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen="" title="RIGGED! Arena Shuffler is BROKEN | 13 Land Mono Red Burn"><empty></empty></iframe></article>
|
|
@ -170,7 +170,7 @@ mod tests {
|
||||||
let url = Url::parse("https://finshots.in").unwrap();
|
let url = Url::parse("https://finshots.in").unwrap();
|
||||||
let res = clean_html_fragment(html, &url).unwrap();
|
let res = clean_html_fragment(html, &url).unwrap();
|
||||||
|
|
||||||
assert_eq!(res.html.len(), 11959);
|
assert_eq!(res.html.len(), 11989);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
res.thumbnail.as_deref(),
|
res.thumbnail.as_deref(),
|
||||||
Some("https://cdn.finshots.app/images/2023/03/Design-8-Amul.jpg")
|
Some("https://cdn.finshots.app/images/2023/03/Design-8-Amul.jpg")
|
||||||
|
|
|
@ -81,7 +81,7 @@ async fn heise_1() {
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn spiegel_1() {
|
async fn spiegel_1() {
|
||||||
run_test("spiegel-1", "https://www.spiegel.de/", None, None).await
|
run_test("spiegel-1", "https://www.spiegel.de/", None, None).await
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
#[ignore = "downloads content from the web"]
|
#[ignore = "downloads content from the web"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue