use rss2email_lib::{get_page_async, Error}; use tokio::test; use crate::common::create_client; mod common; #[test] async fn test_download_plain_xml() { let payload = get_page_async( "https://antoniosbarotsis.github.io/index.xml", &create_client(), ) .await; let content = payload.expect("Downloaded content"); assert!(content.starts_with("")); } #[test] async fn test_download_xml_for_rss() { let payload = get_page_async("https://github.blog/feed", &create_client()).await; let content = payload.expect("Downloaded content"); assert!(content.starts_with("