From: Manuel Traut Date: Sat, 23 Nov 2024 15:32:19 +0100 Subject: Disable tests that require XML feeds Signed-off-by: Manuel Traut --- podcasts-data/src/dbqueries.rs | 2 +- podcasts-data/src/feed.rs | 2 ++ podcasts-data/src/models/new_episode.rs | 5 +++++ podcasts-data/src/models/new_show.rs | 3 +++ podcasts-data/src/opml.rs | 2 ++ 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/podcasts-data/src/dbqueries.rs b/podcasts-data/src/dbqueries.rs index a05e0bc..d2fd9e5 100644 --- a/podcasts-data/src/dbqueries.rs +++ b/podcasts-data/src/dbqueries.rs @@ -569,7 +569,6 @@ mod tests { assert_eq!(eps_num2, 0); Ok(()) } - */ #[test] fn test_episode_exists() -> Result<()> { @@ -610,4 +609,5 @@ mod tests { Ok(()) } + */ } diff --git a/podcasts-data/src/feed.rs b/podcasts-data/src/feed.rs index 4a7c753..c55837a 100644 --- a/podcasts-data/src/feed.rs +++ b/podcasts-data/src/feed.rs @@ -194,6 +194,7 @@ mod tests { /// randomly chosen const TEST_SOURCE_ID: SourceId = SourceId(42); + /* Disable tests that require XML feeds #[test] fn test_complete_index() -> Result<()> { truncate_db()?; @@ -475,4 +476,5 @@ mod tests { Ok(()) } + */ } diff --git a/podcasts-data/src/models/new_episode.rs b/podcasts-data/src/models/new_episode.rs index 203d25a..088636f 100644 --- a/podcasts-data/src/models/new_episode.rs +++ b/podcasts-data/src/models/new_episode.rs @@ -627,6 +627,7 @@ mod tests { .unwrap() }); + /* Disable tests that needs XML feed #[test] fn test_new_episode_minimal_intercepted() -> Result<()> { let file = File::open("tests/feeds/2018-01-20-Intercepted.xml")?; @@ -735,6 +736,7 @@ mod tests { assert_eq!(&*EXPECTED_INTERCEPTED_2, &ep); Ok(()) } + */ #[test] fn test_new_episode_update() -> Result<()> { @@ -807,6 +809,8 @@ mod tests { Ok(()) } + + /* Disable tests that need xml feeds // https://gitlab.gnome.org/World/podcasts/-/issues/216 // new episode is imported, always same title, different guid #[test] @@ -863,4 +867,5 @@ mod tests { Ok(()) } + */ } diff --git a/podcasts-data/src/models/new_show.rs b/podcasts-data/src/models/new_show.rs index 5231127..6eca7b5 100644 --- a/podcasts-data/src/models/new_show.rs +++ b/podcasts-data/src/models/new_show.rs @@ -341,6 +341,8 @@ mod tests { .unwrap() }); + + /* Disable tests that needs XML feed #[test] fn test_new_podcast_intercepted() -> Result<()> { let file = File::open("tests/feeds/2018-01-20-Intercepted.xml")?; @@ -417,6 +419,7 @@ mod tests { assert_eq!(&*EXPECTED_INTERCEPTED, &pd); Ok(()) } + */ #[test] // TODO: Add more test/checks diff --git a/podcasts-data/src/opml.rs b/podcasts-data/src/opml.rs index 564cb70..93a6f76 100644 --- a/podcasts-data/src/opml.rs +++ b/podcasts-data/src/opml.rs @@ -306,6 +306,7 @@ mod tests { Ok(()) } + /* Disable tests that needs XML feed #[test] fn text_export() -> Result<()> { truncate_db()?; @@ -348,4 +349,5 @@ mod tests { assert_eq!(opml_str, include_str!("../tests/export_test.opml")); Ok(()) } + */ }