| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 
 | From: Manuel Traut <manut@mecka.net>
Date: Sat, 23 Nov 2024 15:32:19 +0100
Subject: Disable tests that require XML feeds
Signed-off-by: Manuel Traut <manut@mecka.net>
---
 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(-)
--- a/podcasts-data/src/dbqueries.rs
+++ b/podcasts-data/src/dbqueries.rs
@@ -569,7 +569,6 @@
         assert_eq!(eps_num2, 0);
         Ok(())
     }
-    */
 
     #[test]
     fn test_episode_exists() -> Result<()> {
@@ -610,4 +609,5 @@
 
         Ok(())
     }
+    */
 }
--- a/podcasts-data/src/feed.rs
+++ b/podcasts-data/src/feed.rs
@@ -194,6 +194,7 @@
     /// randomly chosen
     const TEST_SOURCE_ID: SourceId = SourceId(42);
 
+    /* Disable tests that require XML feeds
     #[test]
     fn test_complete_index() -> Result<()> {
         truncate_db()?;
@@ -456,4 +457,5 @@
 
         Ok(())
     }
+    */
 }
--- a/podcasts-data/src/models/new_episode.rs
+++ b/podcasts-data/src/models/new_episode.rs
@@ -628,6 +628,7 @@
             .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")?;
@@ -736,6 +737,7 @@
         assert_eq!(&*EXPECTED_INTERCEPTED_2, &ep);
         Ok(())
     }
+    */
 
     #[test]
     fn test_new_episode_update() -> Result<()> {
@@ -808,6 +810,8 @@
         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]
@@ -864,4 +868,5 @@
 
         Ok(())
     }
+    */
 }
--- a/podcasts-data/src/models/new_show.rs
+++ b/podcasts-data/src/models/new_show.rs
@@ -341,6 +341,8 @@
             .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 @@
         assert_eq!(&*EXPECTED_INTERCEPTED, &pd);
         Ok(())
     }
+    */
 
     #[test]
     // TODO: Add more test/checks
--- a/podcasts-data/src/opml.rs
+++ b/podcasts-data/src/opml.rs
@@ -306,6 +306,7 @@
         Ok(())
     }
 
+    /* Disable tests that needs XML feed
     #[test]
     fn text_export() -> Result<()> {
         truncate_db()?;
@@ -348,4 +349,5 @@
         assert_eq!(opml_str, include_str!("../tests/export_test.opml"));
         Ok(())
     }
+    */
 }
 |