| 1 |
From: Manuel Traut <[email protected]> |
| 2 |
Date: Sat, 23 Nov 2024 15:32:19 +0100 |
| 3 |
Subject: Disable tests that require XML feeds |
| 4 |
|
| 5 |
Signed-off-by: Manuel Traut <[email protected]> |
| 6 |
--- |
| 7 |
podcasts-data/src/dbqueries.rs | 2 +- |
| 8 |
podcasts-data/src/feed.rs | 2 ++ |
| 9 |
podcasts-data/src/models/new_episode.rs | 5 +++++ |
| 10 |
podcasts-data/src/models/new_show.rs | 3 +++ |
| 11 |
podcasts-data/src/opml.rs | 2 ++ |
| 12 |
5 files changed, 13 insertions(+), 1 deletion(-) |
| 13 |
|
| 14 |
diff --git a/podcasts-data/src/dbqueries.rs b/podcasts-data/src/dbqueries.rs |
| 15 |
index a05e0bc..d2fd9e5 100644 |
| 16 |
--- a/podcasts-data/src/dbqueries.rs |
| 17 |
+++ b/podcasts-data/src/dbqueries.rs |
| 18 |
@@ -569,7 +569,6 @@ mod tests { |
| 19 |
assert_eq!(eps_num2, 0); |
| 20 |
Ok(()) |
| 21 |
} |
| 22 |
|
| 23 |
|
| 24 |
#[test] |
| 25 |
fn test_episode_exists() -> Result<()> { |
| 26 |
@@ -610,4 +609,5 @@ mod tests { |
| 27 |
|
| 28 |
Ok(()) |
| 29 |
} |
| 30 |
+ */ |
| 31 |
} |
| 32 |
diff --git a/podcasts-data/src/feed.rs b/podcasts-data/src/feed.rs |
| 33 |
index 4a7c753..c55837a 100644 |
| 34 |
--- a/podcasts-data/src/feed.rs |
| 35 |
+++ b/podcasts-data/src/feed.rs |
| 36 |
@@ -194,6 +194,7 @@ mod tests { |
| 37 |
/// randomly chosen |
| 38 |
const TEST_SOURCE_ID: SourceId = SourceId(42); |
| 39 |
|
| 40 |
+ /* Disable tests that require XML feeds |
| 41 |
#[test] |
| 42 |
fn test_complete_index() -> Result<()> { |
| 43 |
truncate_db()?; |
| 44 |
@@ -475,4 +476,5 @@ mod tests { |
| 45 |
|
| 46 |
Ok(()) |
| 47 |
} |
| 48 |
+ */ |
| 49 |
} |
| 50 |
diff --git a/podcasts-data/src/models/new_episode.rs b/podcasts-data/src/models/new_episode.rs |
| 51 |
index 203d25a..088636f 100644 |
| 52 |
--- a/podcasts-data/src/models/new_episode.rs |
| 53 |
+++ b/podcasts-data/src/models/new_episode.rs |
| 54 |
@@ -627,6 +627,7 @@ mod tests { |
| 55 |
.unwrap() |
| 56 |
}); |
| 57 |
|
| 58 |
+ /* Disable tests that needs XML feed |
| 59 |
#[test] |
| 60 |
fn test_new_episode_minimal_intercepted() -> Result<()> { |
| 61 |
let file = File::open("tests/feeds/2018-01-20-Intercepted.xml")?; |
| 62 |
@@ -735,6 +736,7 @@ mod tests { |
| 63 |
assert_eq!(&*EXPECTED_INTERCEPTED_2, &ep); |
| 64 |
Ok(()) |
| 65 |
} |
| 66 |
+ */ |
| 67 |
|
| 68 |
#[test] |
| 69 |
fn test_new_episode_update() -> Result<()> { |
| 70 |
@@ -807,6 +809,8 @@ mod tests { |
| 71 |
Ok(()) |
| 72 |
} |
| 73 |
|
| 74 |
+ |
| 75 |
+ /* Disable tests that need xml feeds |
| 76 |
// https://gitlab.gnome.org/World/podcasts/-/issues/216 |
| 77 |
// new episode is imported, always same title, different guid |
| 78 |
#[test] |
| 79 |
@@ -863,4 +867,5 @@ mod tests { |
| 80 |
|
| 81 |
Ok(()) |
| 82 |
} |
| 83 |
+ */ |
| 84 |
} |
| 85 |
diff --git a/podcasts-data/src/models/new_show.rs b/podcasts-data/src/models/new_show.rs |
| 86 |
index 5231127..6eca7b5 100644 |
| 87 |
--- a/podcasts-data/src/models/new_show.rs |
| 88 |
+++ b/podcasts-data/src/models/new_show.rs |
| 89 |
@@ -341,6 +341,8 @@ mod tests { |
| 90 |
.unwrap() |
| 91 |
}); |
| 92 |
|
| 93 |
+ |
| 94 |
+ /* Disable tests that needs XML feed |
| 95 |
#[test] |
| 96 |
fn test_new_podcast_intercepted() -> Result<()> { |
| 97 |
let file = File::open("tests/feeds/2018-01-20-Intercepted.xml")?; |
| 98 |
@@ -417,6 +419,7 @@ mod tests { |
| 99 |
assert_eq!(&*EXPECTED_INTERCEPTED, &pd); |
| 100 |
Ok(()) |
| 101 |
} |
| 102 |
+ */ |
| 103 |
|
| 104 |
#[test] |
| 105 |
// TODO: Add more test/checks |
| 106 |
diff --git a/podcasts-data/src/opml.rs b/podcasts-data/src/opml.rs |
| 107 |
index 564cb70..93a6f76 100644 |
| 108 |
--- a/podcasts-data/src/opml.rs |
| 109 |
+++ b/podcasts-data/src/opml.rs |
| 110 |
@@ -306,6 +306,7 @@ mod tests { |
| 111 |
Ok(()) |
| 112 |
} |
| 113 |
|
| 114 |
+ /* Disable tests that needs XML feed |
| 115 |
#[test] |
| 116 |
fn text_export() -> Result<()> { |
| 117 |
truncate_db()?; |
| 118 |
@@ -348,4 +349,5 @@ mod tests { |
| 119 |
assert_eq!(opml_str, include_str!("../tests/export_test.opml")); |
| 120 |
Ok(()) |
| 121 |
} |
| 122 |
+ */ |
| 123 |
} |